Try fix ava cache issue (#153)

This commit is contained in:
Philip Peterson 2025-05-09 14:38:35 -07:00 committed by GitHub
parent e46ef31d88
commit 36e5c150a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 25 additions and 19 deletions

View file

@ -3,6 +3,7 @@ module.exports = {
extensions: ['ts'], extensions: ['ts'],
require: ['ts-node/register/transpile-only'], require: ['ts-node/register/transpile-only'],
timeout: '2m', timeout: '2m',
verbose: true,
// Due to permissions issues, Windows needs cache turned off // Due to permissions issues, Windows needs cache turned off
cache: false cache: false
}; };

View file

@ -2,6 +2,7 @@ module.exports = {
files: ['test/unit/*'], files: ['test/unit/*'],
extensions: ['ts'], extensions: ['ts'],
require: ['ts-node/register/transpile-only'], require: ['ts-node/register/transpile-only'],
verbose: true,
// Due to permissions issues, Windows needs cache turned off // Due to permissions issues, Windows needs cache turned off
cache: false cache: false
}; };

View file

@ -13,9 +13,9 @@
"build": "cross-env NODE_ENV=production webpack && tsc -b -v && cross-env BABEL_ENV=production babel target/renderer/bundle.js --out-file target/renderer/bundle.js --no-comments --minified", "build": "cross-env NODE_ENV=production webpack && tsc -b -v && cross-env BABEL_ENV=production babel target/renderer/bundle.js --out-file target/renderer/bundle.js --no-comments --minified",
"lint": "eslint . --fix --ext .js,.jsx,.ts,.tsx,.json", "lint": "eslint . --fix --ext .js,.jsx,.ts,.tsx,.json",
"test": "yarn run lint && yarn run test:unit", "test": "yarn run lint && yarn run test:unit",
"test:unit": "ava", "test:unit": "cross-env DEBUG=ava:watcher ava",
"test:unit:watch": "yarn run test:unit -- --watch", "test:unit:watch": "yarn run test:unit -- --watch",
"test:e2e": "ava --config ava-e2e.config.js", "test:e2e": "cross-env DEBUG=ava:watcher ava --config ava-e2e.config.js",
"postinstall": "yarn run v8-snapshot && webpack --config-name hyper-app && yarn run install-app-deps-with-retry && yarn run rebuild-node-pty && cpy --cwd=target node_modules \"../../app/\" && husky && yarn run generate-schema", "postinstall": "yarn run v8-snapshot && webpack --config-name hyper-app && yarn run install-app-deps-with-retry && yarn run rebuild-node-pty && cpy --cwd=target node_modules \"../../app/\" && husky && yarn run generate-schema",
"install-app-deps-with-retry": "electron-builder install-app-deps || electron-builder install-app-deps || electron-builder install-app-deps", "install-app-deps-with-retry": "electron-builder install-app-deps || electron-builder install-app-deps || electron-builder install-app-deps",
"rebuild-node-pty": "electron-rebuild -f -o node-pty -m target", "rebuild-node-pty": "electron-rebuild -f -o node-pty -m target",
@ -38,13 +38,23 @@
"@electron/remote": "2.1.2", "@electron/remote": "2.1.2",
"@react-icons/all-files": "4.1.0", "@react-icons/all-files": "4.1.0",
"@redux-devtools/extension": "^3.3.0", "@redux-devtools/extension": "^3.3.0",
"@xterm/addon-canvas": "0.7.0",
"@xterm/addon-fit": "0.10.0",
"@xterm/addon-image": "0.8.0",
"@xterm/addon-ligatures": "0.9.0",
"@xterm/addon-search": "0.15.0",
"@xterm/addon-unicode11": "0.8.0",
"@xterm/addon-web-links": "0.11.0",
"@xterm/addon-webgl": "0.18.0",
"@xterm/xterm": "5.5.0",
"args": "5.0.3", "args": "5.0.3",
"ava": "https://github.com/quine-global/ava#5b287fbd9f8c24a84f083626f72b6f177002b2a6",
"chalk": "5.3.0", "chalk": "5.3.0",
"clsx": "2.1.1", "clsx": "2.1.1",
"color": "4.2.3", "color": "4.2.3",
"columnify": "1.6.0", "columnify": "1.6.0",
"electron-rebuild": "^3.2.9",
"css-loader": "7.1.2", "css-loader": "7.1.2",
"electron-rebuild": "^3.2.9",
"got": "12.4.1", "got": "12.4.1",
"json-loader": "0.5.7", "json-loader": "0.5.7",
"lodash": "4.17.21", "lodash": "4.17.21",
@ -68,16 +78,7 @@
"stylis": "3.5.4", "stylis": "3.5.4",
"typescript-json-schema": "0.65.1", "typescript-json-schema": "0.65.1",
"uuid": "10.0.0", "uuid": "10.0.0",
"webpack-cli": "5.1.4", "webpack-cli": "5.1.4"
"@xterm/xterm": "5.5.0",
"@xterm/addon-canvas": "0.7.0",
"@xterm/addon-fit": "0.10.0",
"@xterm/addon-image": "0.8.0",
"@xterm/addon-ligatures": "0.9.0",
"@xterm/addon-search": "0.15.0",
"@xterm/addon-unicode11": "0.8.0",
"@xterm/addon-web-links": "0.11.0",
"@xterm/addon-webgl": "0.18.0"
}, },
"devDependencies": { "devDependencies": {
"@ava/babel": "2.0.0", "@ava/babel": "2.0.0",
@ -108,16 +109,15 @@
"@types/uuid": "10.0.0", "@types/uuid": "10.0.0",
"@typescript-eslint/eslint-plugin": "7.0.0", "@typescript-eslint/eslint-plugin": "7.0.0",
"@typescript-eslint/parser": "6.21.0", "@typescript-eslint/parser": "6.21.0",
"ava": "6.2.0",
"babel-loader": "9.2.1", "babel-loader": "9.2.1",
"concurrently": "9.1.0", "concurrently": "9.1.0",
"copy-webpack-plugin": "12.0.2", "copy-webpack-plugin": "12.0.2",
"cpy-cli": "^5.0.0", "cpy-cli": "^5.0.0",
"cross-env": "7.0.3", "cross-env": "7.0.3",
"electron": "34.5.1", "electron": "34.5.1",
"electron-mksnapshot": "34.5.1",
"electron-builder": "26.0.13", "electron-builder": "26.0.13",
"electron-link": "^0.6.0", "electron-link": "^0.6.0",
"electron-mksnapshot": "34.5.1",
"electronmon": "^2.0.3", "electronmon": "^2.0.3",
"eslint": "8.57.0", "eslint": "8.57.0",
"eslint-config-prettier": "9.1.0", "eslint-config-prettier": "9.1.0",

View file

@ -2255,10 +2255,9 @@ at-least-node@^1.0.0:
resolved "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" resolved "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2"
integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==
ava@6.2.0: "ava@https://github.com/quine-global/ava#5b287fbd9f8c24a84f083626f72b6f177002b2a6":
version "6.2.0" version "6.2.0"
resolved "https://registry.npmjs.org/ava/-/ava-6.2.0.tgz#77be81e745ae219dd835c4e0941f6cf236bb23aa" resolved "https://github.com/quine-global/ava#5b287fbd9f8c24a84f083626f72b6f177002b2a6"
integrity sha512-+GZk5PbyepjiO/68hzCZCUepQOQauKfNnI7sA4JukBTg97jD7E+tDKEA7OhGOGr6EorNNMM9+jqvgHVOTOzG4w==
dependencies: dependencies:
"@vercel/nft" "^0.27.5" "@vercel/nft" "^0.27.5"
acorn "^8.13.0" acorn "^8.13.0"
@ -3207,7 +3206,12 @@ delegates@^1.0.0:
resolved "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" resolved "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
integrity sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ== integrity sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==
detect-libc@^2.0.0, detect-libc@^2.0.1: detect-libc@^2.0.0:
version "2.0.4"
resolved "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.4.tgz#f04715b8ba815e53b4d8109655b6508a6865a7e8"
integrity sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==
detect-libc@^2.0.1:
version "2.0.3" version "2.0.3"
resolved "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz#f0cd503b40f9939b894697d19ad50895e30cf700" resolved "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz#f0cd503b40f9939b894697d19ad50895e30cf700"
integrity sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw== integrity sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==