We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b94b20b commit 4c0cf19Copy full SHA for 4c0cf19
package.json
@@ -23,6 +23,7 @@
23
"@babel/core": "^7.4.4",
24
"@babel/preset-env": "^7.4.4",
25
"airtap": "^2.0.2",
26
+ "core-js": "^3.0.1",
27
"cross-env": "^5.2.0",
28
"object.getownpropertydescriptors": "^2.0.3",
29
"tape": "^4.10.1"
test.js
@@ -1,5 +1,11 @@
1
const test = require('tape');
2
3
+// Conditionally load polyfills required for testing
4
+if (typeof Promise === 'undefined') {
5
+ console.log('Loading Promise polyfill');
6
+ require('core-js/features/promise');
7
+}
8
+
9
const testPaths = [
10
['test-assert-async.js', () => require('./test/parallel/test-assert-async.js')],
11
['test-assert-checktag.js', () => require('./test/parallel/test-assert-checktag.js')],
0 commit comments