Skip to content

Commit 61a2022

Browse files
committed
Merge branch 'main' of github.com:vizzuhq/vizzu-lib into main
2 parents 2de502d + 13fe964 commit 61a2022

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

example/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "jest.config.js",
3+
"type": "module"
4+
}

src/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "jest.config.js",
3+
"type": "module"
4+
}

test/unit/babel.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/unit/jest.config.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
rootDir: "../../",
33
roots: [
44
'<rootDir>/src',
@@ -10,11 +10,17 @@ module.exports = {
1010
coveragePathIgnorePatterns: [
1111
".test.data."
1212
],
13-
testRegex: "(test/unit/.*(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$",
14-
transform: {
15-
"^.+\\.jsx?$": "<rootDir>/test/unit/node_modules/babel-jest",
16-
"^.+\\.mjs$": "<rootDir>/test/unit/node_modules/babel-jest",
13+
coverageThreshold: {
14+
global: {
15+
branches: 100,
16+
functions: 100,
17+
lines: 100,
18+
statements: 100
19+
}
1720
},
21+
testEnvironment: 'jest-environment-node',
22+
testRegex: "(test/unit/.*(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$",
23+
transform: {},
1824
testPathIgnorePatterns: ["<rootDir>/test/unit/node_modules/"],
1925
moduleFileExtensions: ["js", "jsx", "mjs"]
2026
}

test/unit/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "vizzu.test.unit",
33
"scripts": {
4-
"test": "jest --config=jest.config.js"
4+
"test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config=jest.config.js"
55
},
6+
"type": "module",
67
"dependencies": {
7-
"jest": "*",
8-
"babel-jest": "*",
9-
"@babel/preset-env": "*"
8+
"jest": "*"
109
}
1110
}

0 commit comments

Comments
 (0)