Skip to content

Commit 0ee9207

Browse files
authored
chore: use pnpm instead of npm in tests (#3188)
1 parent 6063fd1 commit 0ee9207

125 files changed

Lines changed: 141 additions & 141 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/auth/.test-dev.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import { testRun } from './.testRun'
2-
testRun('npm run dev')
2+
testRun('pnpm run dev')

examples/auth/.test-prod.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import { testRun } from './.testRun'
2-
testRun('npm run prod')
2+
testRun('pnpm run prod')

examples/auth/.testRun.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export { testRun }
33
import { run, page, test, expect, getServerUrl, fetchHtml, autoRetry } from '@brillout/test-e2e'
44
import { ensureWasClientSideRouted, testCounter } from '../../test/utils'
55

6-
function testRun(cmd: 'npm run dev' | 'npm run prod') {
6+
function testRun(cmd: 'pnpm run dev' | 'pnpm run prod') {
77
run(cmd)
88

99
test('Basics', async () => {

examples/base-url-cdn/.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { testRun } from '../base-url/.testRun'
22

3-
testRun('npm run start', { baseAssets: 'http://localhost:8080/cdn/', baseServer: '/' })
3+
testRun('pnpm run start', { baseAssets: 'http://localhost:8080/cdn/', baseServer: '/' })

examples/base-url-server/.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { testRun } from '../base-url/.testRun'
22

3-
testRun('npm run start', { baseServer: '/some/base-url/', baseAssets: 'http://localhost:8080/cdn/' })
3+
testRun('pnpm run start', { baseServer: '/some/base-url/', baseAssets: 'http://localhost:8080/cdn/' })
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { testRun } from './.testRun'
22
const base = '/some/base-url'
3-
testRun('npm run dev', { baseServer: base, baseAssets: base })
3+
testRun('pnpm run dev', { baseServer: base, baseAssets: base })
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { testRun } from './.testRun'
22
const base = '/some/base-url'
3-
testRun('npm run preview', { baseServer: base, baseAssets: base })
3+
testRun('pnpm run preview', { baseServer: base, baseAssets: base })

examples/base-url/.testRun.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ensureWasClientSideRouted, testCounter } from '../../test/utils'
55
import assert from 'node:assert'
66

77
function testRun(
8-
cmd: 'npm run dev' | 'npm run preview' | 'npm run start',
8+
cmd: 'pnpm run dev' | 'pnpm run preview' | 'pnpm run start',
99
{
1010
baseServer,
1111
baseAssets,
@@ -16,7 +16,7 @@ function testRun(
1616
) {
1717
const addBaseServer = (url: string) => join(baseServer, url)
1818
const addBaseAssets = (url: string) => join(baseAssets, url)
19-
const isDev = cmd === 'npm run dev'
19+
const isDev = cmd === 'pnpm run dev'
2020

2121
run(cmd)
2222

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import { testRun } from './.testRun'
2-
testRun('npm run dev', { hasStarWarsPage: true })
2+
testRun('pnpm run dev', { hasStarWarsPage: true })
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import { testRun } from './.testRun'
2-
testRun('npm run preview', { hasStarWarsPage: true })
2+
testRun('pnpm run preview', { hasStarWarsPage: true })

0 commit comments

Comments
 (0)