mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 07:08:02 -05:00
Enable react linting and move test file to .jsx instead of .js.
This commit is contained in:
parent
0e09e29c80
commit
98a25068d6
3 changed files with 6 additions and 6 deletions
11
package.json
11
package.json
|
@ -139,12 +139,11 @@
|
|||
"jest": {
|
||||
"setupFiles": [
|
||||
"<rootDir>/test/helpers/enzyme-setup.js"
|
||||
],
|
||||
|
||||
"moduleNameMapper": {
|
||||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
|
||||
"\\.(css|less|scss)$": "<rootDir>/test/__mocks__/styleMock.js"
|
||||
}
|
||||
],
|
||||
"moduleNameMapper": {
|
||||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
|
||||
"\\.(css|less|scss)$": "<rootDir>/test/__mocks__/styleMock.js"
|
||||
}
|
||||
},
|
||||
"nyc": {
|
||||
"include": [
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
module.exports = {
|
||||
extends: ['scratch/react'],
|
||||
env: {
|
||||
jest: true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue