Skip to content

Commit

Permalink
make the layout look more like the TSOFA lib
Browse files Browse the repository at this point in the history
* note that the output goes into the dist directory
* also special tsconfig just for jest
  • Loading branch information
pahjbo committed Sep 26, 2024
1 parent 7972240 commit 743a7b4
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 6,978 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules/
/.idea/
/dist/
25 changes: 16 additions & 9 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
import type {Config} from 'jest';
import { createDefaultEsmPreset, type JestConfigWithTsJest } from 'ts-jest'

const config: Config = {
clearMocks: true,
testEnvironment: "node",
preset: "ts-jest/presets/default-esm",
const defaultEsmPreset = createDefaultEsmPreset(

)

const jestConfig: JestConfigWithTsJest = {
// [...]
...defaultEsmPreset,
transform: {
"^.+.(t|j)sx?$": ["ts-jest",{"useESM": true}],
"^.+.(t|j)sx?$": ["ts-jest",{
useESM: true,
tsconfig: "./tsconfig-jest.json"
}],
},
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
};
export default config;
}
}

export default jestConfig
Loading

0 comments on commit 743a7b4

Please sign in to comment.