knowmax-quest-types 3.0.0-beta.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -29
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,32 +5,3 @@ Contains types used for consuming data returned from Knowmax Quest.
|
|
|
5
5
|
## License
|
|
6
6
|
|
|
7
7
|
This repository is [licensed MIT](LICENSE), which waives all copyright restrictions.
|
|
8
|
-
|
|
9
|
-
## Jest Configuration for ES Modules
|
|
10
|
-
|
|
11
|
-
When using this package with Jest in an ES module project, configure your `jest.config.ts` as follows:
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { JestConfigWithTsJest } from 'ts-jest'
|
|
15
|
-
|
|
16
|
-
const jestConfig: JestConfigWithTsJest = {
|
|
17
|
-
preset: 'ts-jest/presets/default-esm',
|
|
18
|
-
extensionsToTreatAsEsm: ['.ts'],
|
|
19
|
-
testEnvironment: 'node',
|
|
20
|
-
transform: {
|
|
21
|
-
'^.+\\.(ts|tsx)$': ['ts-jest', {
|
|
22
|
-
useESM: true
|
|
23
|
-
}],
|
|
24
|
-
'^.+\\.(js|jsx)$': ['ts-jest', {
|
|
25
|
-
useESM: true
|
|
26
|
-
}]
|
|
27
|
-
},
|
|
28
|
-
moduleNameMapper: {
|
|
29
|
-
'^(\\.{1,2}/.*)\\.js$': '$1'
|
|
30
|
-
},
|
|
31
|
-
transformIgnorePatterns: [
|
|
32
|
-
'node_modules/(?!knowmax-quest-types/)'
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export default jestConfig
|