-
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.
- Loading branch information
Showing
5 changed files
with
2,711 additions
and
66 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 |
---|---|---|
|
@@ -19,6 +19,11 @@ Install Dependencies | |
pnpm i | ||
``` | ||
|
||
Run Tests | ||
```bash | ||
pnpm test | ||
``` | ||
|
||
Build | ||
```bash | ||
pnpm build | ||
|
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,12 @@ | ||
export default { | ||
preset: 'ts-jest/presets/default-esm', // Preset for ESM support with ts-jest | ||
testEnvironment: 'node', // Test environment | ||
extensionsToTreatAsEsm: ['.ts', '.tsx'], // Treat TypeScript files as ESM | ||
transform: { | ||
'^.+\\.ts?$': ['ts-jest', { // Configure ts-jest directly in transform | ||
useESM: true // Set ESM mode directly here | ||
}] | ||
}, | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
testMatch: ['**/__tests__/**/*.test.ts?(x)', '**/?(*.)+(test).ts?(x)'] | ||
}; |
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.