Skip to content

Commit

Permalink
test(e2e): only move radicle directory on onboaring suite worker
Browse files Browse the repository at this point in the history
Signed-off-by: Zacharias Fragkiadakis <zacfragkiadakis@gmail.com>
  • Loading branch information
QZera committed Jan 7, 2025
1 parent dfad5ef commit 4747d92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/e2e/wdio.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export const config: Options.Testrunner = {
},
onPrepare: async () => {
await $`mkdir -p ${path.join(rootDirPath, 'node_modules/.cache/wdio')}`
await $`mv ${nodeHomePath} ${`${nodeHomePath}.temp`}`
},
onWorkerStart: async (_cid, _caps, specs) => {
if (specs.some((spec) => spec.includes('onboarding.spec.ts'))) {
await $`mv ${nodeHomePath} ${`${nodeHomePath}.temp`}`
}
},
}

0 comments on commit 4747d92

Please sign in to comment.