mirror of
https://gh-proxy.org/https://github.com/klinsmaya/workdsh.git
synced 2026-11-09 18:07:02 +08:00
test(repo): include market workspace in root typecheck
This commit is contained in:
@@ -47,6 +47,11 @@ const workspaceManifest = JSON.parse(readFileSync(new URL('package.json', worksp
|
||||
const ciWorkflow = readFileSync(new URL('.github/workflows/ci.yml', workspaceRoot), 'utf8')
|
||||
|
||||
describe('published package surface', () => {
|
||||
it('runs desktop and community market typechecks from the root command', () => {
|
||||
expect(workspaceManifest.scripts?.typecheck)
|
||||
.toBe('yarn workspace dsh-plugin-desktop typecheck && yarn workspace dsh-community-market typecheck')
|
||||
})
|
||||
|
||||
it('registers both npm launcher names', () => {
|
||||
expect(manifest.name).toBe('dsh-plugin-desktop')
|
||||
expect(manifest.bin).toEqual({
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "yarn workspace dsh-community-market build && yarn workspace dsh-plugin-desktop build",
|
||||
"typecheck": "yarn workspace dsh-plugin-desktop typecheck",
|
||||
"typecheck": "yarn workspace dsh-plugin-desktop typecheck && yarn workspace dsh-community-market typecheck",
|
||||
"test": "yarn workspace dsh-plugin-desktop test",
|
||||
"check:layout": "node scripts/verify-layout.mjs",
|
||||
"check": "yarn check:layout && yarn workspace dsh-community-fabric check && yarn workspace dsh-community-market check && yarn workspace dsh-plugin-desktop check",
|
||||
|
||||
Reference in New Issue
Block a user