Skip to content

Commit

Permalink
chore: modify Rslib test script (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 authored Sep 27, 2024
1 parent ffb1a0a commit 3f6bb32
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/rslib.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import { runInRepo } from '../utils'
import { runInRepo, $, cd } from '../utils'
import { RunOptions } from '../types'

export async function test(options: RunOptions) {
await runInRepo({
...options,
repo: 'web-infra-dev/rslib',
branch: process.env.RSLIB ?? 'main',
test: ['test:artifact'],
beforeTest: async () => {
cd('./tests')
await $`pnpm playwright install --with-deps`
cd('..')
},
test: ['test'],
})
}

0 comments on commit 3f6bb32

Please sign in to comment.