Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mantou132 committed Apr 21, 2024
1 parent 7521aa9 commit d0f2f47
Show file tree
Hide file tree
Showing 10 changed files with 784 additions and 550 deletions.
4 changes: 2 additions & 2 deletions packages/duoyun-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"@gemjs/config": "^1.6.14",
"@open-wc/testing": "^2.5.33",
"@types/d3-geo": "^3.0.1",
"@web/dev-server-esbuild": "^0.2.16",
"@web/test-runner": "^0.13.22",
"@web/dev-server-esbuild": "^1.0.2",
"@web/test-runner": "^0.18.1",
"rimraf": "^3.0.2",
"typescript": "^5.4.3",
"webpack-merge": "^5.7.3"
Expand Down
5 changes: 4 additions & 1 deletion packages/duoyun-ui/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ import { esbuildPlugin } from '@web/dev-server-esbuild';

// https://modern-web.dev/docs/test-runner/cli-and-configuration/
// https://modern-web.dev/guides/test-runner/typescript/
/**
* @type {import('@web/test-runner').TestRunnerConfig}
*/
export default {
coverage: true,
coverageConfig: {
exclude: ['**/node_modules/**', '**/__wds-outside-root__/**/*'],
},
nodeResolve: true,
files: ['./src/**/*.test.ts', './src/**/*.spec.ts'],
plugins: [esbuildPlugin({ ts: true })],
plugins: [esbuildPlugin({ ts: true, tsconfig: './tsconfig.json' })],
};
5 changes: 2 additions & 3 deletions packages/gem-book/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@
"@types/mkdirp": "^1.0.1",
"@types/parse-github-url": "^1.0.0",
"@types/prismjs": "^1.16.5",
"@web/dev-server-esbuild": "^0.2.16",
"@web/test-runner": "^0.13.22",
"esbuild": "^0.14.14",
"@web/dev-server-esbuild": "^1.0.2",
"@web/test-runner": "^0.18.1",
"gem-analyzer": "^1.7.9",
"nodemon": "^2.0.7",
"ts-morph": "^13.0.0",
Expand Down
9 changes: 5 additions & 4 deletions packages/gem-book/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { esbuildPlugin } from '@web/dev-server-esbuild';

// https://modern-web.dev/docs/test-runner/cli-and-configuration/
// https://modern-web.dev/guides/test-runner/typescript/
/**
* @type {import('@web/test-runner').TestRunnerConfig}
*/
export default {
coverage: true,
coverageConfig: {
exclude: ['**/node_modules/**', '**/__wds-outside-root__/**'],
},
coverageConfig: { exclude: ['**/__wds-outside-root__/**'] },
nodeResolve: true,
files: ['./src/**/*.test.ts', './src/**/*.spec.ts'],
plugins: [esbuildPlugin({ ts: true })],
plugins: [esbuildPlugin({ ts: true, tsconfig: './tsconfig.json' })],
};
2 changes: 1 addition & 1 deletion packages/gem-devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@gemjs/config": "^1.6.14",
"@types/webextension-polyfill": "^0.10.7",
"vite": "^4.5.2",
"vite": "^5.1.7",
"web-ext": "^7.8.0"
},
"author": "mantou132",
Expand Down
2 changes: 1 addition & 1 deletion packages/gem-examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"devDependencies": {
"@gemjs/config": "^1.6.14",
"vite": "^4.5.2",
"vite": "^5.1.7",
"vite-plugin-virtual-mpa": "^1.9.3"
}
}
6 changes: 3 additions & 3 deletions packages/gem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
"@esm-bundle/chai": "^4.3.4-fix.0",
"@gemjs/config": "^1.6.14",
"@open-wc/testing": "^2.5.33",
"@web/dev-server-esbuild": "^0.2.16",
"@web/test-runner": "^0.13.22",
"@web/dev-server-esbuild": "^1.0.2",
"@web/test-runner": "^0.18.1",
"rimraf": "^3.0.2",
"typescript": "^5.4.3",
"vite": "^4.5.2"
"vite": "^5.1.7"
},
"author": "mantou132",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/gem/src/test/elements/link.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { GemActiveLinkElement } from '../../elements/link';

import '../../elements/link';

describe('GemTitleElement', () => {
describe('GemLinkElement', () => {
it('basic', async () => {
const ele: GemActiveLinkElement = await fixture(
html`<gem-active-link pattern="/*" href="/#测试">active-link</gem-active-link>`,
Expand Down
5 changes: 4 additions & 1 deletion packages/gem/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import { esbuildPlugin } from '@web/dev-server-esbuild';

// https://modern-web.dev/docs/test-runner/cli-and-configuration/
// https://modern-web.dev/guides/test-runner/typescript/
/**
* @type {import('@web/test-runner').TestRunnerConfig}
*/
export default {
coverage: true,
nodeResolve: true,
files: ['./src/**/*.test.ts', './src/**/*.spec.ts'],
plugins: [esbuildPlugin({ ts: true })],
plugins: [esbuildPlugin({ ts: true, tsconfig: './tsconfig.json' })],
};
1,294 changes: 761 additions & 533 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit d0f2f47

Please sign in to comment.