Skip to content

Commit d835914

Browse files
committed
minor tweaks
1 parent b0b56d5 commit d835914

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export default {
22
// verbose: true, // Uncomment for detailed test output
33
collectCoverage: true,
44
coverageDirectory: 'coverage',
5+
preset: 'ts-jest/presets/js-with-babel',
56
testEnvironment: 'jsdom',
67
testEnvironmentOptions: {
78
customExportConditions: ['node'],

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
5858
// "typeRoots": [], /* List of folders to include type definitions from. */
5959
"typeRoots": [
60-
"node_modules/@types"
60+
"node_modules/@types",
61+
"node_modules/@testing-library"
6162
] /* List of folders to include type definitions from. */,
6263
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
6364
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */

0 commit comments

Comments
 (0)