diff --git a/package.json b/package.json index 936743985..9a32ad5d7 100644 --- a/package.json +++ b/package.json @@ -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" }, @@ -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": { diff --git a/test/copy.test.ts b/test/copy.test.ts index 7f9d83a06..96e898dbc 100644 --- a/test/copy.test.ts +++ b/test/copy.test.ts @@ -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'); });