-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9280ead
commit 0344b51
Showing
24 changed files
with
180 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './home-page'; | ||
export * from './home-page'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import test from "@playwright/test"; | ||
import { HomePage } from "../pages"; | ||
import { expect } from "@playwright/test"; | ||
import test from '@playwright/test'; | ||
import { HomePage } from '../pages'; | ||
import { expect } from '@playwright/test'; | ||
|
||
// This test is a sample E2E test. You can delete it. | ||
|
||
test("Sample test", async ({ page}) => { | ||
const homePage = new HomePage(page); | ||
await homePage.goto(); | ||
await expect(homePage.page.getByRole('link', { name: 'Home' })).toBeVisible(); | ||
}); | ||
test('Sample test', async ({ page }) => { | ||
const homePage = new HomePage(page); | ||
await homePage.goto(); | ||
await expect(homePage.page.getByRole('link', { name: 'Home' })).toBeVisible(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
/** | ||
* @returns {Promise<import('jest').Config>} | ||
*/ | ||
const path = require("path"); | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
collectCoverageFrom: [ | ||
"**/src/**/*.component.tsx", | ||
"!**/node_modules/**", | ||
"!**/vendor/**", | ||
"!**/src/**/*.test.*", | ||
"!**/src/declarations.d.ts", | ||
"!**/e2e/**", | ||
'**/src/**/*.component.tsx', | ||
'!**/node_modules/**', | ||
'!**/vendor/**', | ||
'!**/src/**/*.test.*', | ||
'!**/src/declarations.d.ts', | ||
'!**/e2e/**', | ||
], | ||
transform: { | ||
"^.+\\.tsx?$": ["@swc/jest"], | ||
'^.+\\.tsx?$': ['@swc/jest'], | ||
}, | ||
transformIgnorePatterns: ["/node_modules/(?!@openmrs)"], | ||
transformIgnorePatterns: ['/node_modules/(?!@openmrs)'], | ||
moduleNameMapper: { | ||
"@openmrs/esm-framework": "@openmrs/esm-framework/mock", | ||
"@openmrs/esm-utils": "@openmrs/esm-framework/mock", | ||
"\\.(s?css)$": "identity-obj-proxy", | ||
"^lodash-es/(.*)$": "lodash/$1", | ||
"^dexie$": require.resolve("dexie"), | ||
'@openmrs/esm-framework': '@openmrs/esm-framework/mock', | ||
'@openmrs/esm-utils': '@openmrs/esm-framework/mock', | ||
'\\.(s?css)$': 'identity-obj-proxy', | ||
'^lodash-es/(.*)$': 'lodash/$1', | ||
'^dexie$': require.resolve('dexie'), | ||
}, | ||
setupFilesAfterEnv: ["<rootDir>/src/setup-tests.ts"], | ||
testPathIgnorePatterns: [path.resolve(__dirname, "e2e")], | ||
testEnvironment: "jsdom", | ||
setupFilesAfterEnv: ['<rootDir>/src/setup-tests.ts'], | ||
testPathIgnorePatterns: [path.resolve(__dirname, 'e2e')], | ||
testEnvironment: 'jsdom', | ||
testEnvironmentOptions: { | ||
url: "http://localhost/", | ||
url: 'http://localhost/', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
declare module "@carbon/react"; | ||
declare module "*.css"; | ||
declare module "*.scss"; | ||
declare module "*.png"; | ||
declare module '@carbon/react'; | ||
declare module '*.css'; | ||
declare module '*.scss'; | ||
declare module '*.png'; | ||
|
||
declare type SideNavProps = object; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.