forked from sinonjs/fake-timers
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from christian-bromann/cb/wdio-fix
Fix issues compiling code for tests
- Loading branch information
Showing
9 changed files
with
148 additions
and
39 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,10 +1,33 @@ | ||
"use strict"; | ||
|
||
const commonjs = require("vite-plugin-commonjs").default; | ||
|
||
exports.config = { | ||
// | ||
// ==================== | ||
// Runner Configuration | ||
// ==================== | ||
// WebdriverIO supports running e2e tests as well as unit and component tests. | ||
runner: "browser", | ||
runner: [ | ||
"browser", | ||
{ | ||
viteConfig: { | ||
plugins: [ | ||
commonjs(), | ||
{ | ||
name: "cjs:combat", | ||
enforce: "pre", | ||
resolveId: (source) => { | ||
if (source === "split2") { | ||
return "https://esm.sh/[email protected]"; | ||
} | ||
return null; | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
], | ||
// | ||
// ================== | ||
// Specify Test Files | ||
|
@@ -21,7 +44,11 @@ exports.config = { | |
// then the current working directory is where your `package.json` resides, so `wdio` | ||
// will be called from there. | ||
// | ||
specs: ["test/**/*test.js"], | ||
specs: [ | ||
// wrap specs into an array so they | ||
// all run in a single session | ||
["test/*-test.js"], | ||
], | ||
// Patterns to exclude. | ||
exclude: [ | ||
// 'path/to/excluded/files' | ||
|