|
11 | 11 | "build": "yarn workspaces foreach -p -t --exclude '{root-workspace}' run build", |
12 | 12 | "build:docs": "typedoc --theme default --out docs/api --tsconfig tsconfig.docs.json && touch docs/.nojekyll", |
13 | 13 | "bundle": "yarn workspace @kiltprotocol/sdk-js run bundle", |
14 | | - "clean": "rimraf tests/dist && yarn workspaces foreach -p --exclude '{root-workspace}' run clean", |
| 14 | + "clean": "rimraf tests/bundle/dist && rimraf tests/integration/dist && yarn workspaces foreach -p --exclude '{root-workspace}' run clean", |
15 | 15 | "clean:docs": "rimraf docs/api", |
16 | 16 | "prepublish": "yarn workspaces foreach -p --no-private exec cp -f ../../LICENSE .", |
17 | 17 | "publish": "yarn workspaces foreach -pt --no-private npm publish", |
18 | | - "lint": "eslint packages --format=codeframe", |
| 18 | + "lint": "eslint packages tests --format=codeframe", |
19 | 19 | "lint:fix": "yarn lint --fix", |
20 | 20 | "set:version": "npm version --no-git-tag-version --no-workspaces-update --workspaces --include-workspace-root", |
21 | 21 | "style": "prettier -l packages", |
22 | 22 | "style:fix": "yarn style --write", |
23 | | - "test": "jest --coverage --group=unit", |
24 | | - "test:breaking": "jest --group=breaking", |
| 23 | + "test": "jest --coverage --selectProjects=unit", |
| 24 | + "test:breaking": "jest --selectProjects=breaking", |
25 | 25 | "test:ci": "yarn test --ci --forceExit", |
26 | | - "test:integration": "jest --group=integration -w 3 --testTimeout=30000", |
27 | | - "test:integration:ci": "jest --group=integration -b -w 3 --testTimeout=60000", |
| 26 | + "test:integration": "jest -c tests/integration/jest.config.integration.js", |
| 27 | + "build:esm-tests": "rimraf tests/integration/dist && tsc -p tests/integration/tsconfig.esm.json && echo '{\"type\":\"module\"}' > tests/integration/dist/package.json", |
| 28 | + "test:integration:esm": "yarn build:esm-tests && yarn node --experimental-vm-modules $(yarn bin jest) -c tests/integration/jest.config.integration.esm.js", |
28 | 29 | "test:integration:latest-develop": "TESTCONTAINERS_NODE_IMG=kiltprotocol/mashnet-node:latest-develop yarn test:integration", |
29 | 30 | "test:watch": "yarn test --watch", |
30 | | - "test:bundle": "tsc -p tests/tsconfig.json && yarn ./tests playwright test --config playwright.config.ts", |
| 31 | + "test:bundle": "tsc -p tests/bundle/tsconfig.json && yarn ./tests/bundle playwright test --config playwright.config.ts", |
31 | 32 | "test:ci:bundle": "yarn test:ci:bundle:preparation && yarn test:bundle", |
32 | 33 | "test:ci:bundle:preparation": "yarn playwright install-deps && yarn playwright install chromium" |
33 | 34 | }, |
|
47 | 48 | "@commitlint/cli": "^9.0.1", |
48 | 49 | "@commitlint/config-conventional": "^9.0.1", |
49 | 50 | "@playwright/test": "^1.21.1", |
50 | | - "@types/jest": "^27.4.0", |
| 51 | + "@types/jest": "^29.5.3", |
51 | 52 | "@typescript-eslint/eslint-plugin": "^5.7.0", |
52 | 53 | "@typescript-eslint/parser": "^5.7.0", |
53 | 54 | "eslint": "^7.32.0", |
|
58 | 59 | "eslint-plugin-license-header": "^0.2.1", |
59 | 60 | "eslint-plugin-prettier": "^3.4.1", |
60 | 61 | "husky": "^4.2.5", |
61 | | - "jest": "^27.4.7", |
62 | | - "jest-docblock": "^27.4.0", |
63 | | - "jest-runner": "^27.4.6", |
64 | | - "jest-runner-groups": "^2.1.0", |
| 62 | + "jest": "^29.6.1", |
65 | 63 | "prettier": "^2.4.1", |
66 | 64 | "rimraf": "^3.0.2", |
67 | 65 | "testcontainers": "^9.0.0", |
68 | | - "ts-jest": "^27.1.2", |
69 | | - "ts-jest-resolver": "^2.0.0", |
| 66 | + "ts-jest": "^29.1.1", |
| 67 | + "ts-jest-resolver": "^2.0.1", |
70 | 68 | "typedoc": "^0.23.0", |
71 | 69 | "typescript": "^4.8.3" |
72 | 70 | }, |
|
0 commit comments