-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prior to this commit there was a webpack bundle created for every test file. That lead to very high memory usage when running the Browser tests. Now there's a single bundle.
- Loading branch information
Showing
4 changed files
with
29 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* global TEST_DIR */ | ||
// This is webpack specific. It will create a single bundle out of | ||
// `test/browser.js and all files ending in `.spec.js` within the | ||
// `test` directory and all its subdirectories. | ||
'use strict' | ||
|
||
// Load test/browser.js if it exists | ||
try { | ||
require(TEST_DIR + '/browser.js') | ||
} catch (_err) { | ||
// Intentionally empty | ||
} | ||
|
||
const testsContext = require.context(TEST_DIR, true, /\.spec\.js$/) | ||
testsContext.keys().forEach(testsContext) |
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