-
- Downloads
Merge pull request #452 from bogusred/feature/jest-setup
Feature/jest setup
No related branches found
No related tags found
Showing
- README.md 15 additions, 0 deletionsREADME.md
- package.json 15 additions, 1 deletionpackage.json
- test/__mocks__/fileMock.js 3 additions, 0 deletionstest/__mocks__/fileMock.js
- test/__mocks__/styleMock.js 3 additions, 0 deletionstest/__mocks__/styleMock.js
- test/unit/components/__snapshots__/button.test.jsx.snap 9 additions, 0 deletionstest/unit/components/__snapshots__/button.test.jsx.snap
- test/unit/components/__snapshots__/sprite-selector-item.test.jsx.snap 43 additions, 0 deletions...mponents/__snapshots__/sprite-selector-item.test.jsx.snap
- test/unit/components/button.test.jsx 24 additions, 0 deletionstest/unit/components/button.test.jsx
- test/unit/components/sprite-selector-item.test.jsx 72 additions, 0 deletionstest/unit/components/sprite-selector-item.test.jsx
- test/unit/containers/__snapshots__/green-flag.test.jsx.snap 19 additions, 0 deletionstest/unit/containers/__snapshots__/green-flag.test.jsx.snap
- test/unit/containers/green-flag.test.jsx 40 additions, 0 deletionstest/unit/containers/green-flag.test.jsx
- test/unit/containers/sprite-selector-item.test.jsx 60 additions, 0 deletionstest/unit/containers/sprite-selector-item.test.jsx
... | ... | @@ -11,7 +11,8 @@ |
"i18n:src": "babel src > tmp.js && rimraf tmp.js && ./scripts/build-i18n-source.js ./translations/messages/ ./translations/", | ||
"lint": "eslint . --ext .js,.jsx", | ||
"start": "npm run i18n:msgs && webpack-dev-server", | ||
"test": "npm run lint && npm run build", | ||
"unit-test": "jest", | ||
"test": "npm run lint && npm run unit-test && npm run build", | ||
"watch": "webpack --progress --colors --watch" | ||
}, | ||
"author": "Massachusetts Institute of Technology", | ||
... | ... | @@ -39,12 +40,14 @@ |
"classnames": "2.2.5", | ||
"copy-webpack-plugin": "4.0.1", | ||
"css-loader": "0.28.3", | ||
"enzyme": "^2.8.2", | ||
"eslint": "^3.16.1", | ||
"eslint-config-scratch": "^3.0.0", | ||
"eslint-plugin-react": "^7.0.1", | ||
"gh-pages": "github:rschamp/gh-pages#publish-branch-to-subfolder", | ||
"html-webpack-plugin": "2.28.0", | ||
"immutable": "3.8.1", | ||
"jest": "^20.0.4", | ||
"lodash.bindall": "4.4.0", | ||
"lodash.debounce": "4.0.8", | ||
"lodash.defaultsdeep": "4.6.0", | ||
... | ... | @@ -65,6 +68,8 @@ |
"react-modal": "2.2.2", | ||
"react-redux": "5.0.5", | ||
"react-style-proptype": "3.0.0", | ||
"react-test-renderer": "^15.5.4", | ||
"redux-mock-store": "^1.2.3", | ||
"react-tabs": "1.1.0", | ||
"redux": "3.7.0", | ||
"redux-throttle": "0.1.1", | ||
... | ... | @@ -81,5 +86,14 @@ |
"webpack": "^2.4.1", | ||
"webpack-dev-server": "^2.4.1", | ||
"xhr": "2.4.0" | ||
}, | ||
"jest": { | ||
"testPathIgnorePatterns": [ | ||
"src/test.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)$": "<rootDir>/test/__mocks__/styleMock.js" | ||
} | ||
} | ||
} |
test/__mocks__/fileMock.js
0 → 100644
test/__mocks__/styleMock.js
0 → 100644
test/unit/components/button.test.jsx
0 → 100644
test/unit/containers/green-flag.test.jsx
0 → 100644
Please register or sign in to comment