-
Notifications
You must be signed in to change notification settings - Fork 1
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 #8 from tsastro/4-module-setup-changes
some further tweaks to setup - this is what is published as 18.1.0
- Loading branch information
Showing
7 changed files
with
155 additions
and
102 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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
// jest.config.ts | ||
import { createDefaultEsmPreset, type JestConfigWithTsJest } from 'ts-jest' | ||
/** | ||
* For a detailed explanation regarding each configuration property, visit: | ||
* https://jestjs.io/docs/configuration | ||
*/ | ||
|
||
const defaultEsmPreset = createDefaultEsmPreset() | ||
import type {Config} from 'jest'; | ||
|
||
const jestConfig: JestConfigWithTsJest = { | ||
// [...] | ||
...defaultEsmPreset, | ||
const jestConfig: Config = { | ||
clearMocks: true, | ||
testEnvironment: "node", | ||
preset: "ts-jest", | ||
transform: { | ||
"^.+.(t|j)sx?$": ["ts-jest",{}], | ||
}, | ||
moduleNameMapper: { | ||
'^(\\.{1,2}/.*)\\.js$': '$1', | ||
}, | ||
|
||
} | ||
|
||
export default jestConfig |
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,18 +1,17 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"display": "Node 22", | ||
"_version": "22.4.0", | ||
"compilerOptions": { | ||
"module": "ESNext", | ||
"target": "ES2020", | ||
"module": "NodeNext", | ||
"target":"ES2020", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"declarationMap": true, | ||
"allowJs": true, | ||
"esModuleInterop": true, | ||
"strict": false, | ||
"moduleResolution": "Node", | ||
"experimentalDecorators": true, | ||
"moduleResolution": "NodeNext", | ||
"isolatedModules": true, | ||
"outDir": "./dist" | ||
}, | ||
"include": [ | ||
"src/main/ts/**/*" | ||
] | ||
} | ||
"include": ["src/main/ts/**/*"] | ||
} |
Oops, something went wrong.