Skip to content

Commit

Permalink
ci: run esm tests in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
rflechtner committed Jul 21, 2023
1 parent 759a82b commit 82b7467
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-node-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:

- name: run integration tests
timeout-minutes: 60
run: yarn test:integration:ci
run: yarn test:integration -b

bundle_cache:
runs-on: ubuntu-latest
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/tests-polkadot-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,13 @@ jobs:
with:
image: ${{ env.TESTCONTAINERS_WATCHER_IMG }}

- name: run integration tests
- name: run integration tests (cjs)
timeout-minutes: 60
run: yarn test:integration:ci
run: yarn test:integration -b

- name: run integration tests (esm)
timeout-minutes: 60
run: yarn test:integration:esm -b

create-issue:
runs-on: ubuntu-latest
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,14 @@ jobs:
with:
image: ${{ env.TESTCONTAINERS_WATCHER_IMG }}

- name: run integration tests
- name: run integration tests (cjs)
timeout-minutes: 60
run: yarn test:integration:ci
run: yarn test:integration -b

- name: run integration tests (esm)
timeout-minutes: 60
run: yarn test:integration:esm -b


bundle_cache:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion jest.config.integration.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
testEnvironment: 'node',
clearMocks: true,
// Parachain block time is 12s
testTimeout: 30000,
testTimeout: 120_000,
maxWorkers: 3,
rootDir: 'tests/integration/dist',
transform: {},
Expand Down
2 changes: 1 addition & 1 deletion jest.config.integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
testEnvironment: 'node',
clearMocks: true,
// Parachain block time is 12s
testTimeout: 30000,
testTimeout: 120_000,
maxWorkers: 3,
testPathIgnorePatterns: ['dist'],
transformIgnorePatterns: ['/node_modules/(?!@digitalbazaar|base.+-universal|crypto-ld)'],
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"test:ci": "yarn test --ci --forceExit",
"test:integration": "jest -c jest.config.integration.js",
"test:integration:esm": "tsc -p tests/integration/tsconfig.esm.json && yarn node --experimental-vm-modules $(yarn bin jest) -c jest.config.integration.esm.js",
"test:integration:ci": "yarn test:integration -b --testTimeout=60000",
"test:integration:latest-develop": "TESTCONTAINERS_NODE_IMG=kiltprotocol/mashnet-node:latest-develop yarn test:integration",
"test:watch": "yarn test --watch",
"test:bundle": "tsc -p tests/bundle/tsconfig.json && yarn ./tests/bundle playwright test --config playwright.config.ts",
Expand Down

0 comments on commit 82b7467

Please sign in to comment.