-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from COS301-SE-2024/feature/web/dashboard
Feature/web/dashboard
- Loading branch information
Showing
75 changed files
with
729 additions
and
18,870 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// // bun-test-extend.d.ts | ||
// import '@testing-library/jest-dom/extend-expect'; | ||
// import { TestingLibraryMatchers } from '@testing-library/jest-dom/matchers'; | ||
|
||
// declare module 'bun:test' { | ||
// export default interface Expect<T = unknown> | ||
// extends TestingLibraryMatchers<ReturnType<typeof expect.stringContaining>, T> { | ||
// [x: string]: any; | ||
// } | ||
// } |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// jest-setup.ts | ||
import '@testing-library/jest-dom'; | ||
// You can remove the import for extend-expect and matchers if not used elsewhere |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// jest.config.js | ||
|
||
module.exports = { | ||
preset: "ts-jest", | ||
testEnvironment: "jsdom", | ||
setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],//this crtlz | ||
moduleNameMapper: { | ||
"\\.(css|less|scss|sass)$": "identity-obj-proxy", | ||
"^@api/(.*)$": "<rootDir>/src/api/$1", | ||
"^@assets/(.*)$": "<rootDir>/src/assets/$1", | ||
"^@components/(.*)$": "<rootDir>/src/components/$1", | ||
"^@config/(.*)$": "<rootDir>/src/config/$1", | ||
"^@layouts/(.*)$": "<rootDir>/src/layouts/$1", | ||
"^@lib/(.*)$": "<rootDir>/src/lib/$1", | ||
"^@pages/(.*)$": "<rootDir>/src/pages/$1", | ||
"^@services/(.*)$": "<rootDir>/src/services/$1", | ||
"^@store/(.*)$": "<rootDir>/src/store/$1", | ||
"^@utils/(.*)$": "<rootDir>/src/utils/$1", | ||
}, | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest', | ||
'\\.(jpg|jpeg|png|gif|webp|svg)$': 'jest-transform-stub', | ||
}, | ||
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], | ||
testPathIgnorePatterns: ["/node_modules/", "/dist/"], | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.