mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 01:29:22 +00:00
Teach ESLint and Jest about .tsx
This commit is contained in:
parent
1c05bd7b7a
commit
9f6aef1b2b
2 changed files with 4 additions and 7 deletions
|
|
@ -15,10 +15,7 @@
|
|||
},
|
||||
"import/resolver": {
|
||||
"node": {
|
||||
"extensions": [
|
||||
".js",
|
||||
".ts"
|
||||
]
|
||||
"extensions": [".js", ".ts", ".tsx"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
module.exports = {
|
||||
displayName: "test",
|
||||
rootDir: "../",
|
||||
testRegex: "\\.test\\.js$",
|
||||
testRegex: "\\.test\\.(js|ts|tsx)$",
|
||||
globals: {
|
||||
SENTRY_DSN: null
|
||||
},
|
||||
moduleFileExtensions: ["js", "ts"],
|
||||
moduleFileExtensions: ["js", "tsx", "ts"],
|
||||
moduleNameMapper: {
|
||||
"\\.css$": "<rootDir>/js/__mocks__/styleMock.js",
|
||||
"\\.wsz$": "<rootDir>/js/__mocks__/fileMock.js",
|
||||
"\\.mp3$": "<rootDir>/js/__mocks__/fileMock.js"
|
||||
},
|
||||
transform: {
|
||||
"^.+\\.(js|ts)$": "babel-jest"
|
||||
"^.+\\.(js|ts|tsx)$": "babel-jest"
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue