set up jest
This commit is contained in:
parent
c7a9f1d6ae
commit
5047ee653b
|
@ -0,0 +1,9 @@
|
||||||
|
import type {Config} from '@jest/types';
|
||||||
|
// Sync object
|
||||||
|
const config: Config.InitialOptions = {
|
||||||
|
verbose: true,
|
||||||
|
transform: {
|
||||||
|
‘^.+\\.tsx?$’: ‘ts-jest’,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
export default config;
|
File diff suppressed because it is too large
Load Diff
|
@ -4,7 +4,8 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"deploy": "webpack --mode production",
|
"deploy": "webpack --mode production",
|
||||||
"watch": "webpack --mode development --watch"
|
"watch": "webpack --mode development --watch",
|
||||||
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@intended/intended-ui": "0.1.26",
|
"@intended/intended-ui": "0.1.26",
|
||||||
|
@ -20,6 +21,7 @@
|
||||||
"@babel/core": "^7.0.0",
|
"@babel/core": "^7.0.0",
|
||||||
"@babel/preset-env": "^7.0.0",
|
"@babel/preset-env": "^7.0.0",
|
||||||
"@babel/preset-react": "^7.16.0",
|
"@babel/preset-react": "^7.16.0",
|
||||||
|
"@types/jest": "^27.4.1",
|
||||||
"@types/phoenix": "^1.5.3",
|
"@types/phoenix": "^1.5.3",
|
||||||
"@types/react": "^17.0.37",
|
"@types/react": "^17.0.37",
|
||||||
"@types/react-dom": "^17.0.11",
|
"@types/react-dom": "^17.0.11",
|
||||||
|
@ -27,12 +29,14 @@
|
||||||
"copy-webpack-plugin": "^5.1.1",
|
"copy-webpack-plugin": "^5.1.1",
|
||||||
"css-loader": "^3.4.2",
|
"css-loader": "^3.4.2",
|
||||||
"hard-source-webpack-plugin": "^0.13.1",
|
"hard-source-webpack-plugin": "^0.13.1",
|
||||||
|
"jest": "^27.5.1",
|
||||||
"mini-css-extract-plugin": "^0.9.0",
|
"mini-css-extract-plugin": "^0.9.0",
|
||||||
"node-sass": "^4.13.1",
|
"node-sass": "^4.13.1",
|
||||||
"optimize-css-assets-webpack-plugin": "^5.0.1",
|
"optimize-css-assets-webpack-plugin": "^5.0.1",
|
||||||
"sass-loader": "^8.0.2",
|
"sass-loader": "^8.0.2",
|
||||||
"source-map-loader": "^3.0.0",
|
"source-map-loader": "^3.0.0",
|
||||||
"terser-webpack-plugin": "^2.3.2",
|
"terser-webpack-plugin": "^2.3.2",
|
||||||
|
"ts-jest": "^27.1.3",
|
||||||
"ts-loader": "8.2.0",
|
"ts-loader": "8.2.0",
|
||||||
"typescript": "^4.5.2",
|
"typescript": "^4.5.2",
|
||||||
"webpack": "^4.41.5",
|
"webpack": "^4.41.5",
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
## Implementation Details
|
||||||
|
|
||||||
|
Write info on what we'd use, or just start adding in the tests and remove this file.
|
Loading…
Reference in New Issue