Skip to content

Commit

Permalink
Merge pull request #206 from yaob421123/master
Browse files Browse the repository at this point in the history
fix: 调整测试用例
  • Loading branch information
ChenlingasMx committed Apr 7, 2023
2 parents 1aaf136 + bd96d44 commit 40c51f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"remove:yarn": "lerna exec --scope @uiw-admin/* --scope @example/* -- rm -rf yarn.lock",
"remove:lib": "lerna exec --scope @uiw-admin/* -- rm -rf ./lib",
"remove:esm": "lerna exec --scope @uiw-admin/* -- rm -rf ./esm",
"test": "tsbb test",
"test": "tsbb test ",
"tsbb": "tsbb",
"lerna": "lerna"
},
Expand Down Expand Up @@ -94,7 +94,7 @@
"lint-staged": "~12.5.0",
"prettier": "^2.7.0",
"recursive-readdir-files": "1.1.2",
"tsbb": "^4.0.5",
"tsbb": "^4.1.4",
"webpack-bundle-analyzer": "~4.5.0"
},
"resolutions": {
Expand Down
4 changes: 2 additions & 2 deletions test/copy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import path from 'path';
it('js案例项目生成测试', async () => {
const srcDir = path.resolve(process.cwd(), 'examples', 'basejs', 'src');
expect(fs.existsSync(srcDir)).toBeTruthy();
const fileNames = fs.readdirSync(srcDir);
expect(fileNames).toContain('index.js');
const fileNames = fs.readdirSync(`${srcDir}/layouts`);
expect(fileNames).toContain('BasicLayout.js');
});

0 comments on commit 40c51f2

Please sign in to comment.