Skip to content

Commit

Permalink
chore: update pnp test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jan 21, 2024
1 parent 9ed752b commit 22387b4
Show file tree
Hide file tree
Showing 11 changed files with 8,030 additions and 7,709 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.yarn
.pnp.*
coverage
dist
lib
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.yarn
.pnp.*
10 changes: 4 additions & 6 deletions test/fixtures/yarn-pnp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ test('yarn-pnp', async () => {
const { stdout } = await execaNode('index.js', [], {
nodeOptions: ['-r', './.pnp.cjs'],
cwd: resolve('test/fixtures/yarn-pnp'),
env: {
FORCE_COLOR: '0',
},
})

/**
* @see https://github.com/sindresorhus/execa/issues/587
*/
expect(stdout).toContain('1')
expect(stdout).toContain('2')
expect(stdout).toContain('5')
expect(stdout).toBe([1, 2, 5].join(' '))
})
2 changes: 2 additions & 0 deletions test/fixtures/yarn-pnp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.yarn/*
!.yarn/releases
Loading

0 comments on commit 22387b4

Please sign in to comment.