@studyportals/webpack-helper 6.0.0-2 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -280,4 +280,4 @@ In order to comply to [Studyportals' definition of done](https://knowledge-vault
280
280
 
281
281
  ## Unit testing
282
282
 
283
- From version `3.2.6` onwards, any dependencies that are required to run unit tests with Jest are included in the `package.json` of `webpack-helper`. As a result, these no longer have to be installed in individual microservices.
283
+ From version `6.0.0` onwards test dependencies are no longer included and should be installed separately. It's also recommended to replace jest with vitest due the complex nature of package jungle. A upgrade guide can be find [here](docs/jest-to-vitest-upgrade-guide.md)
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@studyportals/webpack-helper",
3
- "version": "6.0.0-2",
3
+ "version": "6.0.1",
4
4
  "description": "A collection of standard configurations and helpers for webpack.",
5
5
  "main": "src/main.js",
6
6
  "scripts": {
7
- "test": "jest --coverage",
7
+ "test": "vitest --watch=false --coverage",
8
8
  "build": "tsc",
9
9
  "prepublish": "npm run build",
10
10
  "postinstall": "cp ./assets/.browserslistrc ../../../"
@@ -23,23 +23,17 @@
23
23
  "@studyportals/browserslist-config": "^1.2.4",
24
24
  "@studyportals/dll-availability-tracker": "^2.0.0",
25
25
  "@studyportals/vue-config": "^5.0.2",
26
- "@types/jest": "^29.5.12",
27
- "@vue/vue3-jest": "^29.2.6",
28
26
  "css-loader": "^6.10.0",
29
27
  "css-minimizer-webpack-plugin": "^6.0.0",
30
28
  "esbuild-loader": "^4.0.3",
31
29
  "esbuild-plugin-browserslist": "^0.11.1",
32
30
  "file-loader": "^6.2.0",
33
31
  "fork-ts-checker-webpack-plugin": "^9.0.2",
34
- "jest": "^29.7.0",
35
- "jest-junit": "^16.0.0",
36
- "jest-serializer-vue": "^3.1.0",
37
32
  "mini-css-extract-plugin": "^2.8.0",
38
33
  "path": "^0.12.7",
39
34
  "sass": "^1.71.1",
40
35
  "sass-loader": "^14.1.1",
41
36
  "terser-webpack-plugin": "^5.3.10",
42
- "ts-jest": "^29.1.2",
43
37
  "typescript": "^5.3.3",
44
38
  "vue-loader": "^17.4.2",
45
39
  "webpack": "^5.90.3",
@@ -47,8 +41,8 @@
47
41
  "webpack-merge": "^5.10.0"
48
42
  },
49
43
  "devDependencies": {
50
- "@types/jest": "^29.5.12",
51
44
  "@types/node": "^20.11.20",
52
- "@vue/test-utils": "^2.4.4"
45
+ "@vitest/coverage-v8": "^1.3.1",
46
+ "vitest": "^1.3.1"
53
47
  }
54
48
  }
@@ -11,9 +11,6 @@ const ProductionConfig = (bobConfig) => {
11
11
  }
12
12
  return {
13
13
  plugins: [
14
- /*new webpack.LoaderOptionsPlugin({
15
- minimize: true
16
- }),*/
17
14
  new webpack.DefinePlugin({
18
15
  'process.env': {
19
16
  NODE_ENV: '"production"'