forked from tv2/sisyfos-audio-controller
-
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.
fix: types for ClassNames and .babelrc for jest tests
- Loading branch information
Showing
11 changed files
with
103 additions
and
71 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-typescript" | ||
] | ||
} |
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
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,34 +1,26 @@ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
globals: { | ||
'ts-jest': { | ||
tsConfig: 'tsconfig-test.json', | ||
babelConfig: '.babelrc' | ||
} | ||
}, | ||
testEnvironment: 'node', | ||
testPathIgnorePatterns: [ | ||
"dist", | ||
"integrationTests" | ||
], | ||
moduleFileExtensions: [ | ||
'js', | ||
'ts' | ||
], | ||
transform: { | ||
'^.+\\.(ts|tsx)$': 'ts-jest', | ||
}, | ||
testMatch: [ | ||
'**/__tests__/**/*.spec.(ts|js)', | ||
], | ||
coverageThreshold: { | ||
global: { | ||
branches: 0, | ||
functions: 0, | ||
lines: 0, | ||
statements: 0, | ||
}, | ||
}, | ||
coverageDirectory: './coverage/', | ||
collectCoverage: true, | ||
} | ||
module.exports = { | ||
preset: 'ts-jest', | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: 'tsconfig-test.json', | ||
babelConfig: '.babelrc', | ||
}, | ||
}, | ||
testEnvironment: 'node', | ||
testPathIgnorePatterns: ['dist', 'integrationTests'], | ||
moduleFileExtensions: ['js', 'ts'], | ||
transform: { | ||
'^.+\\.(ts|tsx)$': 'ts-jest', | ||
}, | ||
testMatch: ['**/__tests__/**/*.spec.(ts|js)'], | ||
coverageThreshold: { | ||
global: { | ||
branches: 0, | ||
functions: 0, | ||
lines: 0, | ||
statements: 0, | ||
}, | ||
}, | ||
coverageDirectory: './coverage/', | ||
collectCoverage: true, | ||
} |
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,27 +1,25 @@ | ||
{ | ||
"compilerOptions": { | ||
// Target latest version of ECMAScript. | ||
"target": "es5", | ||
// Search under node_modules for non-relative imports. | ||
"moduleResolution": "node", | ||
// Process & infer types from .js files. | ||
"allowJs": false, | ||
// Don't emit; allow Babel to transform files. | ||
"noEmit": false, | ||
// Enable strictest settings like strictNullChecks & noImplicitAny. | ||
"strict": false, | ||
// Disallow features that require cross-file information for emit. | ||
"isolatedModules": false, | ||
// Import non-ES modules as default imports. | ||
"esModuleInterop": true, | ||
//Support for jsx. | ||
"jsx": "react", | ||
// Check for "any" while converting to TS this can be turned off. | ||
"noImplicitAny": true, | ||
"module": "commonjs", | ||
"allowSyntheticDefaultImports": true | ||
// Target latest version of ECMAScript. | ||
"target": "es5", | ||
// Search under node_modules for non-relative imports. | ||
"moduleResolution": "node", | ||
// Process & infer types from .js files. | ||
"allowJs": false, | ||
// Don't emit; allow Babel to transform files. | ||
"noEmit": false, | ||
// Enable strictest settings like strictNullChecks & noImplicitAny. | ||
"strict": false, | ||
// Disallow features that require cross-file information for emit. | ||
"isolatedModules": false, | ||
// Import non-ES modules as default imports. | ||
"esModuleInterop": true, | ||
//Support for jsx. | ||
"jsx": "react", | ||
// Check for "any" while converting to TS this can be turned off. | ||
"noImplicitAny": false, | ||
"module": "commonjs", | ||
"allowSyntheticDefaultImports": true | ||
}, | ||
"include": [ | ||
"src" | ||
] | ||
} | ||
"include": ["src"] | ||
} |
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