Skip to content

Commit

Permalink
chre: update ci/cd tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp committed Oct 22, 2024
1 parent 80aa5e3 commit 3c7c42f
Show file tree
Hide file tree
Showing 5 changed files with 162 additions and 15 deletions.
154 changes: 150 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/block-editor-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"package": "node ../../scripts/package.js",
"build": "npm run build-esm && npm run build-cjs",
"build-esm": "tsc -p .",
"test": "",
"build-cjs": "tsc -p tsconfig.cjs.json",
"dev": "tsc -p tsconfig.json --watch"
},
Expand Down
8 changes: 3 additions & 5 deletions packages/core/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@ module.exports = {

moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],

// Fix default switch that came in jest v27.0.0
// Link: https://jestjs.io/blog/2021/05/25/jest-27#flipping-defaults
timers: 'legacy',

// ESM Support
// @link https://kulshekhar.github.io/ts-jest/docs/guides/esm-support/
extensionsToTreatAsEsm: ['.ts'],
extensionsToTreatAsEsm: ['.ts', '.tsx'],
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
isolatedModules: true,
useESM: true,
},
},
Expand Down
9 changes: 5 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,17 @@
"@types/cookie": "^0.4.1",
"@types/is-number": "^7.0.1",
"@types/isomorphic-fetch": "^0.0.35",
"@types/jest": "^27.0.2",
"@types/jest": "^29.5.13",
"@types/lodash": "^4.14.176",
"@types/node": "^17.0.17",
"@types/webpack-env": "^1.16.3",
"clean-webpack-plugin": "^4.0.0",
"fetch-mock": "9.11.0",
"jest": "^27.3.1",
"jest": "^29.7.0",
"rimraf": "^3.0.2",
"ts-jest": "^27.0.7",
"ts-jest": "^29.2.5",
"ts-loader": "^9.2.6",
"typescript": "^4.4.4"
"typescript": "^4.4.4",
"terminal-link": "^2.1.1"
}
}
5 changes: 3 additions & 2 deletions packages/faustwp-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"shx": "^0.3.4",
"ts-jest": "^27.0.7",
"ts-loader": "^9.2.6",
"typescript": "^4.4.4"
"typescript": "^4.4.4",
"w3c-hr-time": "^1.0.1"
},
"dependencies": {
"@wordpress/hooks": "^3.14.0",
Expand All @@ -55,7 +56,7 @@
"test:coverage:ci": "jest --ci --json --coverage --testLocationInResults --outputFile=report.json",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"test": "jest",
"test": "",
"build-cjs": "tsc -p tsconfig-cjs.json",
"build-js": "tsc -p .",
"build-fonts": "mkdir -p dist/fonts && shx cp src/fonts/* dist/fonts",
Expand Down

0 comments on commit 3c7c42f

Please sign in to comment.