-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat): allow wdio config to be in a sub directory
- Loading branch information
1 parent
2ca09b3
commit 7f2d380
Showing
7 changed files
with
36 additions
and
47 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import fs from 'node:fs'; | ||
import url from 'node:url'; | ||
import path from 'node:path'; | ||
|
||
import { getBinaryPath } from 'wdio-electron-service/utils'; | ||
import { config as baseConfig } from '../../wdio.conf.js'; | ||
|
||
const __dirname = path.dirname(url.fileURLToPath(import.meta.url)); | ||
const rootDir = path.join(__dirname, '..', '..') | ||
const packageJson = JSON.parse(fs.readFileSync(path.join(rootDir, 'package.json')).toString()); | ||
|
||
const { | ||
build: { productName }, | ||
} = packageJson; | ||
|
||
process.env.TEST = 'true'; | ||
|
||
export const config = { | ||
...baseConfig, | ||
specs: ['../*.spec.ts'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.