diff --git a/.github/workflows/GHPages.yml b/.github/workflows/GHPages.yml index e988deaf..24c8488d 100644 --- a/.github/workflows/GHPages.yml +++ b/.github/workflows/GHPages.yml @@ -14,10 +14,10 @@ jobs: node-version: 14 - name: Install And Build run: |+ - npm install + npm install --legacy-peer-deps npm run build cd explorer-v2 - npm install + npm install --legacy-peer-deps npm run pre-build npm run build - name: Deploy diff --git a/.github/workflows/NodeCI.yml b/.github/workflows/NodeCI.yml index 72391398..4170bfae 100644 --- a/.github/workflows/NodeCI.yml +++ b/.github/workflows/NodeCI.yml @@ -15,7 +15,7 @@ jobs: with: node-version: 14 - name: Install Packages - run: npm install + run: npm install --legacy-peer-deps - name: Lint run: npm run lint test: @@ -30,7 +30,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - name: Install Packages - run: npm install + run: npm install --legacy-peer-deps - name: Test run: npm test test-for-ts-eslint-v4: @@ -49,7 +49,7 @@ jobs: npm i -D @typescript-eslint/parser@4 @typescript-eslint/eslint-plugin@4 --legacy-peer-deps npx rimraf node_modules - name: Install Packages - run: npm install + run: npm install --legacy-peer-deps - name: Test run: npm test test-for-eslint-v7: @@ -68,7 +68,7 @@ jobs: npm i -D eslint@7 --legacy-peer-deps npx rimraf node_modules - name: Install Packages - run: npm install + run: npm install --legacy-peer-deps - name: Test run: npm test test-and-coverage: @@ -77,7 +77,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 - name: Install Packages - run: npm install + run: npm install --legacy-peer-deps - name: Test run: npm run cover - name: Coveralls GitHub Action diff --git a/.github/workflows/NpmPublish.yml b/.github/workflows/NpmPublish.yml index 4792fa4c..1f22b11b 100644 --- a/.github/workflows/NpmPublish.yml +++ b/.github/workflows/NpmPublish.yml @@ -15,7 +15,7 @@ jobs: with: registry-url: 'https://registry.npmjs.org' - name: Install Packages - run: npm install + run: npm install --legacy-peer-deps - name: test and build run: | npm run build diff --git a/package.json b/package.json index b2cd80fa..8a2d2660 100644 --- a/package.json +++ b/package.json @@ -54,31 +54,31 @@ "@types/eslint-visitor-keys": "^1.0.0", "@types/mocha": "^9.0.0", "@types/node": "^16.0.0", - "@typescript-eslint/eslint-plugin": "^5.0.0", - "@typescript-eslint/parser": "^5.0.0", - "code-red": "^0.2.0", - "eslint": "^8.0.0", - "eslint-config-prettier": "^8.0.0", + "@typescript-eslint/eslint-plugin": "^5.4.0", + "@typescript-eslint/parser": "^5.4.0", + "code-red": "^0.2.3", + "eslint": "^8.2.0", + "eslint-config-prettier": "^8.3.0", "eslint-plugin-eslint-comments": "^3.2.0", - "eslint-plugin-json-schema-validator": "^2.0.0", + "eslint-plugin-json-schema-validator": "^2.1.6", "eslint-plugin-jsonc": "^2.0.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-node-dependencies": "^0.6.0", "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-regexp": "^1.0.0", - "eslint-plugin-svelte3": "^3.2.0", - "eslint-plugin-vue": "^8.0.0", + "eslint-plugin-regexp": "^1.5.0", + "eslint-plugin-svelte3": "^3.2.1", + "eslint-plugin-vue": "^8.0.3", "estree-walker": "^3.0.0", "locate-character": "^2.0.5", "magic-string": "^0.25.7", - "mocha": "^9.0.0", + "mocha": "^9.1.3", "nyc": "^15.1.0", "prettier": "^2.0.5", - "prettier-plugin-svelte": "^2.3.0", - "string-replace-loader": "^3.0.1", - "svelte": "^3.37.0", - "ts-node": "^10.0.0", - "typescript": "^4.0.0", - "vue-eslint-parser": "^8.0.0" + "prettier-plugin-svelte": "^2.5.0", + "string-replace-loader": "^3.0.3", + "svelte": "^3.44.1", + "ts-node": "^10.4.0", + "typescript": "~4.5.0-0", + "vue-eslint-parser": "^8.0.1" } } diff --git a/tests/src/parser/test-utils.ts b/tests/src/parser/test-utils.ts index 3e9594bf..ce2ffa06 100644 --- a/tests/src/parser/test-utils.ts +++ b/tests/src/parser/test-utils.ts @@ -164,6 +164,9 @@ export function nodeReplacer(key: string, value: any): any { if (key === "parent") { return undefined } + if (key === "assertions" && Array.isArray(value) && value.length === 0) { + return undefined + } if (value instanceof RegExp) { return String(value) }