Skip to content

Commit

Permalink
Fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mantou132 committed Dec 11, 2023
1 parent d9ae37b commit 0b9fe43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"version": "1.6.5",
"scripts": {
"lint": "lerna exec -- tsc --noEmit && eslint --ext .ts,.js",
"test": "lerna exec --scope @mantou/gem --scope gem-book --scope duoyun-ui -- yarn test",
"test": "lerna exec --concurrency=1 --scope @mantou/gem --scope gem-book --scope duoyun-ui -- yarn test",
"release": "lerna version",
"prepare": "husky install && yarn --cwd packages/gem build && yarn --cwd packages/gem-analyzer build && yarn --cwd packages/gem-book build && yarn --cwd packages/gem-book link && yarn --cwd packages/gem-port build && yarn --cwd packages/gem-port link"
"build:gem": "yarn --cwd packages/gem build && yarn --cwd packages/gem-analyzer build && yarn --cwd packages/duoyun-ui build",
"build:cli": "yarn --cwd packages/gem-book build && yarn --cwd packages/gem-book link && yarn --cwd packages/gem-port build && yarn --cwd packages/gem-port link",
"prepare": "husky install && yarn build:gem && yarn build:cli"
},
"devDependencies": {
"@types/node": "^20.10.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/gem/src/test/history.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ describe('history 测试', () => {
it('hash', async () => {
const historyLength = window.history.length;
const hash = window.location.hash;
// 等待浏览器就绪
await aTimeout(1000);
history.push({ path: '/a', hash: '#a' });
await aTimeout(10);
expect(window.location.hash).to.equal('#a');
history.back();
await aTimeout(600);
await aTimeout(10);
expect(window.location.hash).to.equal(hash);
history.push({ path: '/a', hash: '#b' });
await aTimeout(10);
Expand Down

0 comments on commit 0b9fe43

Please sign in to comment.