Enable react linting and move test file to .jsx instead of .js.

This commit is contained in:
picklesrus 2019-08-01 16:16:42 -04:00
parent 0e09e29c80
commit 98a25068d6
3 changed files with 6 additions and 6 deletions

View file

@ -139,12 +139,11 @@
"jest": { "jest": {
"setupFiles": [ "setupFiles": [
"<rootDir>/test/helpers/enzyme-setup.js" "<rootDir>/test/helpers/enzyme-setup.js"
], ],
"moduleNameMapper": {
"moduleNameMapper": { "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
"\\.(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"
"\\.(css|less|scss)$": "<rootDir>/test/__mocks__/styleMock.js" }
}
}, },
"nyc": { "nyc": {
"include": [ "include": [

View file

@ -1,4 +1,5 @@
module.exports = { module.exports = {
extends: ['scratch/react'],
env: { env: {
jest: true jest: true
} }