Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 3 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"@vates/async-each": "^1.0.0",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"babel-jest": "^29.0.3",
"benchmark": "^2.1.4",
"eslint": "^8.7.0",
"eslint-config-prettier": "^9.0.0",
Expand All @@ -34,7 +33,6 @@
"globby": "^13.1.1",
"handlebars": "^4.7.6",
"husky": "^8.0.2",
"jest": "^29.0.3",
"lint-staged": "^15.0.2",
"lodash": "^4.17.4",
"prettier": "^3.0.1",
Expand All @@ -48,49 +46,13 @@
"node": ">=14",
"yarn": "^1.7.0"
},
"jest": {
"moduleNameMapper": {
"^(@vates/[^/]+)$": [
"$1/src",
"$1"
],
"^(@xen-orchestra/[^/]+)$": [
"$1/src",
"$1"
],
"^(value-matcher)$": "$1/src",
"^(vhd-cli)$": "$1/src",
"^(xo-[^/]+)$": [
"$1/src",
"$1"
]
},
"projects": [
"<rootDir>"
],
"testEnvironment": "node",
"testPathIgnorePatterns": [
"/@vates/decorate-with/",
"/@vates/event-listeners-manager/",
"/@vates/nbd-client/",
"/@vates/node-vsphere-soap/",
"/@vates/predicates/",
"/@xen-orchestra/audit-core/",
"/dist/",
"/xen-api/",
"/xo-server/",
"/xo-web/"
],
"testRegex": "\\.spec\\.js$"
},
"lint-staged": {
"*": [
"scripts/run-changed-pkgs.js test",
"prettier --ignore-unknown --write"
],
"*.{{{,c,m}j,t}s{,x},vue}": [
"eslint",
"jest --testRegex='^(?!.*.integ.spec.js$).*.spec.js$' --findRelatedTests --passWithNoTests"
"eslint"
],
".USAGE.md": "scripts/usage-to-readme.js --git-add",
"./CHANGELOG.unreleased.md": "sh -c 'scripts/gen-deps-list.js --check-order' --"
Expand All @@ -101,13 +63,12 @@
"build:xo-lite": "turbo run build --filter @xen-orchestra/lite",
"clean": "scripts/run-script.js --parallel clean",
"dev": "scripts/run-script.js --parallel --concurrency 0 --verbose dev",
"dev-test": "jest --bail --watch \"^(?!.*\\.integ\\.spec\\.js$)\"",
"prepare": "husky install",
"prettify": "prettier --ignore-unknown --write .",
"test": "npm run test-lint && npm run test-unit",
"test-integration": "jest \".integ\\.spec\\.js$\" && scripts/run-script.js --parallel test-integration",
"test-integration": "scripts/run-script.js --parallel test-integration",
"test-lint": "eslint --ignore-path .gitignore --ignore-pattern packages/xo-web .",
"test-unit": "jest --passWithNoTests \"^(?!.*\\.integ\\.spec\\.js$)\" && scripts/run-script.js --bail test"
"test-unit": "scripts/run-script.js --bail test"
},
"workspaces": [
"@*/*",
Expand Down
2 changes: 1 addition & 1 deletion packages/vhd-lib/Vhd/VhdAbstract.integ.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ describe('VhdAbstract', { concurrency: 1 }, async () => {
// first block should be empty
const EMPTY = Buffer.alloc(blockDataLength, 0)
const firstBlock = buffer.slice(0, blockDataLength)
// using buffer1 toEquals buffer2 make jest crash trying to stringify it on failure
// using buffer1 toEquals buffer2 make test runner crash trying to stringify it on failure
assert.equal(firstBlock.equals(EMPTY), true)

let remainingLength = initialByteSize - blockDataLength // already checked the first block
Expand Down
9 changes: 0 additions & 9 deletions packages/xo-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@
"copy-to-clipboard": "^3.0.8",
"d3": "^5.0.0",
"debounce-input-decorator": "^1.0.0",
"enzyme": "^3.3.0",
"enzyme-adapter-react-15": "^1.0.5",
"enzyme-to-json": "^3.3.0",
"font-awesome": "^4.7.0",
"font-mfizz": "^2.4.1",
"get-stream": "^4.0.0",
Expand Down Expand Up @@ -155,11 +152,5 @@
"babelify",
"loose-envify"
]
},
"jest": {
"setupTestFrameworkScriptFile": "./setup-tests.js",
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
}
}
6 changes: 0 additions & 6 deletions packages/xo-web/setup-tests.js

This file was deleted.

13 changes: 0 additions & 13 deletions packages/xo-web/src/common/grid.spec.js

This file was deleted.

Loading
Loading