Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
feat: jest with esm support
Browse files Browse the repository at this point in the history
  • Loading branch information
sublimator committed Jun 28, 2023
1 parent 3cc284a commit d4dad27
Show file tree
Hide file tree
Showing 22 changed files with 88 additions and 95 deletions.
8 changes: 4 additions & 4 deletions packages/coil-anonymous-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/coil-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/coil-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
"serve:dist": "http-server -p 4000 dist",
"serve:fixtures": "http-server -p 4000 test/fixtures",
"serve:fixtures-iframes": "http-server -p 4000 test/fixtures/iframes",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep",
"web-ext-reload": "web-ext run --reload -s $PWD/dist -p default-release"
Expand Down
8 changes: 4 additions & 4 deletions packages/coil-local-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/coil-monorepo-upkeep/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
15 changes: 4 additions & 11 deletions packages/coil-monorepo-upkeep/src/commands/doUpKeep/doUpKeep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ function setCommonScriptsAndMergeOverrides(

const githubPath = rootPackageJSON.repository.url.split(':')[1].slice(0, -4)

const jest = ({ e2e, coverage }: { e2e: boolean; coverage: boolean }) => {
const mjsAndCjs = '--config jest.config.cjs'
const JEST_E2E = e2e ? 'JEST_E2E=1' : ''
const rest = coverage ? '--verbose --coverage' : ''
return `NODE_OPTIONS=--experimental-vm-modules ${JEST_E2E} PROJECT_JEST=1 jest --passWithNoTests ${rest} ${mjsAndCjs}`
}

let updated: PackageJSON = {
...subPackageJSON,
// TODO: use workspace
Expand Down Expand Up @@ -157,10 +150,10 @@ function setCommonScriptsAndMergeOverrides(
upkeep: 'cd ../.. && pnpm upkeep',
'lint:all': "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
lint: 'eslint --cache --cache-location ../../node_modules/.cache/eslint',
'test:e2e': jest({ e2e: true, coverage: false }),
'test:e2e:coverage': jest({ e2e: true, coverage: true }),
test: jest({ e2e: false, coverage: false }),
'test:coverage': jest({ e2e: false, coverage: true })
'test:e2e': 'JEST_E2E=1 pnpm run test',
'test:e2e:coverage': 'JEST_E2E=1 pnpm run test:coverage',
test: 'NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests',
'test:coverage': 'pnpm run test --coverage --verbose'
}
}

Expand Down
8 changes: 4 additions & 4 deletions packages/coil-privacypass-sjcl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/coil-puppeteer-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/coil-webpack-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/coil-wm-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/dier-makr-annotations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/dier-makr-inversify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/dummy-ext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/niq-ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/stacktracejs-stacktrace-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"lint:all": "pnpm lint 'src/**/*.{mts,ts,tsx}' 'test/**/*.{mts,ts,tsx}'",
"precommit": "echo lint-staged runs from root",
"prettier": "prettier --write '*.{mts,ts,tsx,js,html,jsx,md}' '{src,test}/**/*.{mts,ts,tsx,js,html,jsx,md}'",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test:e2e": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --config jest.config.cjs",
"test:e2e:coverage": "NODE_OPTIONS=--experimental-vm-modules JEST_E2E=1 PROJECT_JEST=1 jest --passWithNoTests --verbose --coverage --config jest.config.cjs",
"test": "NODE_OPTIONS=--experimental-vm-modules PROJECT_JEST=1 jest --passWithNoTests",
"test:coverage": "pnpm run test --coverage --verbose",
"test:e2e": "JEST_E2E=1 pnpm run test",
"test:e2e:coverage": "JEST_E2E=1 pnpm run test:coverage",
"tsnodeenv": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --require tsconfig-paths/register\" TS_NODE_PROJECT=\"../../tsconfig.cjs.json\"",
"upkeep": "cd ../.. && pnpm upkeep"
},
Expand Down
Loading

0 comments on commit d4dad27

Please sign in to comment.