File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1- import path from 'node:path'
1+ import path , { sep } from 'node:path'
22import { $ } from 'zx'
33import type { Options } from '@wdio/types'
44import {
@@ -29,6 +29,13 @@ switch (process.platform) {
2929 break
3030}
3131
32+ const orderedSpecPaths = [ './specs/onboarding.spec.ts' , './specs/settings.spec.ts' ] . map (
33+ ( specPath ) => specPath . replace ( '/' , sep ) ,
34+ )
35+ const specsToExcludeFromGlob = orderedSpecPaths . map ( ( specPath ) =>
36+ specPath . split ( sep ) . at ( - 1 ) ?. replace ( '.spec.ts' , '' ) ,
37+ )
38+
3239// TODO: Bump webdriverio to v9 once wdio-vscode-service supports it
3340// Relevant PR: https://github.com/webdriverio-community/wdio-vscode-service/pull/130
3441// Relevant Issue: https://github.com/webdriverio-community/wdio-vscode-service/issues/140
@@ -40,10 +47,7 @@ export const config: Options.Testrunner = {
4047 transpileOnly : true ,
4148 } ,
4249 } ,
43- specs : [
44- [ './specs/onboarding.spec.ts' , './specs/settings.spec.ts' ] ,
45- './specs/**/!(onboarding|settings).spec.ts' ,
46- ] ,
50+ specs : [ orderedSpecPaths , `./specs/**/!(${ specsToExcludeFromGlob . join ( '|' ) } ).spec.ts` ] ,
4751 maxInstances : 10 ,
4852 capabilities : [
4953 {
You can’t perform that action at this time.
0 commit comments