Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
chore: update dependencies (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau authored Oct 26, 2022
1 parent deb445f commit 0cee4ae
Show file tree
Hide file tree
Showing 5 changed files with 2,800 additions and 6,481 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,11 @@ jobs:
- name: Install npm deps
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci
- name: Run node tests
- name: Run tests for older versions
if: matrix.node-version != '18.x'
run: npm test -- --bail true
- name: Run tests for Node 18
if: matrix.node-version == '18.x'
env:
NODE_OPTIONS: "--no-experimental-fetch"
run: npm test -- --bail true
20 changes: 6 additions & 14 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import type { Config } from '@jest/types'

export default async (): Promise<Config.InitialOptions> => {
return {
preset: 'ts-jest',
runner: '@ethersphere/jest-serial-runner',
testRegex: 'test/integration/.*\\.spec\\.ts',
testEnvironment: 'node',

// Indicates whether the coverage information should be collected while executing the test
// collectCoverage: false,

Expand All @@ -18,22 +23,9 @@ export default async (): Promise<Config.InitialOptions> => {
// An array of directory names to be searched recursively up from the requiring module's location
moduleDirectories: ['node_modules'],

// Run tests from one or more projects
projects: [
{
displayName: 'integration',
testEnvironment: 'node',
preset: 'ts-jest',

// Because of integration tests we have to run the tests serially
runner: '@codejedi365/jest-serial-runner',

testRegex: 'test/integration/.*\\.spec\\.ts',
},
] as unknown[] as string[], // bad types

// The root directory that Jest should scan for tests and modules within
rootDir: 'test',

// Increase timeout since we are spinning Bee containers
testTimeout: 4 * 60 * 1000,

Expand Down
Loading

0 comments on commit 0cee4ae

Please sign in to comment.