Skip to content

Commit

Permalink
test: use pnpm to install mock deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcherGu committed May 14, 2024
1 parent 4a7495d commit 8bae3c7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/builder/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export function checkOrCreateHtmlFile(fileName = 'index.html') {

export async function installDeps(cwd: string) {
const { stdout, stderr } = await execa(
'yarn',
['install', '--pure-lockfile'],
'pnpm',
['install', '--no-lockfile', '--ignore-workspace'],
{
cwd,
},
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-vite/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const mockDir = path.resolve(__dirname, './mock')

async function installDeps(cwd: string) {
const { stdout, stderr } = await execa(
'yarn',
['install', '--pure-lockfile'],
'pnpm',
['install', '--no-lockfile', '--ignore-workspace'],
{
cwd,
},
Expand Down
4 changes: 2 additions & 2 deletions packages/runner/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ function removeBeforeRunNodeFile() {

async function installDeps(cwd: string) {
const { stdout, stderr } = await execa(
'yarn',
['install', '--pure-lockfile'],
'pnpm',
['install', '--no-lockfile', '--ignore-workspace'],
{
cwd,
},
Expand Down
3 changes: 2 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
packages:
- 'packages/*'
- "packages/*"
- "!**/test/**"

0 comments on commit 8bae3c7

Please sign in to comment.