Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit a601f9c

Browse files
committed
fix: webpack bundle tests only once
Prior to this change there was a webpack bundle for every test file which lead to very high memory usage. Now the tests are webpacked only once into a single big file. Closes #683.
1 parent 78ba320 commit a601f9c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"url": "https://github.com/ipfs/js-ipfs-api"
6666
},
6767
"devDependencies": {
68-
"aegir": "^13.0.0",
68+
"aegir": "^14.0.0",
6969
"chai": "^4.1.2",
7070
"dirty-chai": "^2.0.1",
7171
"eslint-plugin-react": "^7.6.1",

test/browser.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// This is webpack specific. It will create a single bundle
2+
// out of all files ending in ".spec.js" within the "test"
3+
// directory and all its subdirectories.
4+
'use strict'
5+
const testsContext = require.context('.', true, /\.spec\.js/)
6+
testsContext.keys().forEach(testsContext)

0 commit comments

Comments
 (0)