From e78465718c419e9871aa1bdc7d5b58dc442df159 Mon Sep 17 00:00:00 2001 From: Adrien Zaganelli Date: Sun, 20 Oct 2024 15:53:32 +0200 Subject: [PATCH 1/3] init --- tests/vue-sonner.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/vue-sonner.ts diff --git a/tests/vue-sonner.ts b/tests/vue-sonner.ts new file mode 100644 index 0000000..ee06133 --- /dev/null +++ b/tests/vue-sonner.ts @@ -0,0 +1,13 @@ +import { runInRepo } from '../utils.ts' +import { RunOptions } from '../types.ts' + +export async function test(options: RunOptions) { + await runInRepo({ + ...options, + repo: 'xiaoluoboding/vue-sonner', + branch: 'main', + build: ['build:lib'], + beforeTest: ['pnpm playwright-core install chromium', 'cd test && pnpm i'], + test: ['test:e2e'], + }) +} From ac439f3ac4c927702ada878bd3aaf2044d0b21d8 Mon Sep 17 00:00:00 2001 From: Adrien Zaganelli Date: Sun, 20 Oct 2024 15:56:08 +0200 Subject: [PATCH 2/3] fix --- tests/vue-sonner.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/vue-sonner.ts b/tests/vue-sonner.ts index ee06133..3a104fd 100644 --- a/tests/vue-sonner.ts +++ b/tests/vue-sonner.ts @@ -7,7 +7,10 @@ export async function test(options: RunOptions) { repo: 'xiaoluoboding/vue-sonner', branch: 'main', build: ['build:lib'], - beforeTest: ['pnpm playwright-core install chromium', 'cd test && pnpm i'], - test: ['test:e2e'], + beforeTest: [ + 'cd test && pnpm playwright-core install chromium', + 'cd test && pnpm i', + ], + test: ['cd test && pnpm test:e2e'], }) } From 250944e50e94281c6963ed5afa3428ad7e2dd97c Mon Sep 17 00:00:00 2001 From: Adrien Zaganelli Date: Sun, 20 Oct 2024 15:58:10 +0200 Subject: [PATCH 3/3] better order --- tests/vue-sonner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vue-sonner.ts b/tests/vue-sonner.ts index 3a104fd..0c3ebb8 100644 --- a/tests/vue-sonner.ts +++ b/tests/vue-sonner.ts @@ -8,8 +8,8 @@ export async function test(options: RunOptions) { branch: 'main', build: ['build:lib'], beforeTest: [ - 'cd test && pnpm playwright-core install chromium', 'cd test && pnpm i', + 'cd test && pnpm playwright-core install chromium', ], test: ['cd test && pnpm test:e2e'], })