Install jest

This commit is contained in:
ginnyTheCat 2022-09-27 19:56:31 +02:00
parent bf94550a84
commit 7bec76b993
No known key found for this signature in database
GPG key ID: 6B7EF3FED72A0D97
4 changed files with 6216 additions and 7 deletions

3
babel.config.js Normal file
View file

@ -0,0 +1,3 @@
module.exports = {
presets: ['@babel/preset-env', '@babel/preset-react'],
};

6209
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -9,7 +9,8 @@
}, },
"scripts": { "scripts": {
"start": "webpack serve --config ./webpack.dev.js --open", "start": "webpack serve --config ./webpack.dev.js --open",
"build": "webpack --config ./webpack.prod.js" "build": "webpack --config ./webpack.prod.js",
"test": "jest"
}, },
"keywords": [], "keywords": [],
"author": "Ajay Bura", "author": "Ajay Bura",
@ -67,6 +68,7 @@
"eslint-plugin-react-hooks": "4.6.0", "eslint-plugin-react-hooks": "4.6.0",
"html-loader": "4.2.0", "html-loader": "4.2.0",
"html-webpack-plugin": "5.5.0", "html-webpack-plugin": "5.5.0",
"jest": "29.0.3",
"mini-css-extract-plugin": "2.6.1", "mini-css-extract-plugin": "2.6.1",
"path-browserify": "1.0.1", "path-browserify": "1.0.1",
"sass": "1.55.0", "sass": "1.55.0",

View file

@ -28,12 +28,7 @@ module.exports = {
{ {
test: /\.jsx?$/, test: /\.jsx?$/,
exclude: /node_modules/, exclude: /node_modules/,
use: { use: ['babel-loader'],
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env', '@babel/preset-react'],
},
},
}, },
{ {
test: /\.html$/, test: /\.html$/,