diff --git a/package.json b/package.json index 9a99437..22f47fa 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "lib": "src" }, "scripts": { - "test": "node ./tests/test.js", + "test": "npm run build-full && node ./tests/test.cjs", "build": "rollup -c", "build-full": "rollup -c --environment FULL", "build-dev": "rollup -c rollup.config.dev.js", diff --git a/tests/async/extends-async-iterator.js b/tests/async/extends-async-iterator.cjs similarity index 100% rename from tests/async/extends-async-iterator.js rename to tests/async/extends-async-iterator.cjs diff --git a/tests/sync/extends-iterator.js b/tests/sync/extends-iterator.cjs similarity index 100% rename from tests/sync/extends-iterator.js rename to tests/sync/extends-iterator.cjs diff --git a/tests/sync/from-iterable.js b/tests/sync/from-iterable.cjs similarity index 100% rename from tests/sync/from-iterable.js rename to tests/sync/from-iterable.cjs diff --git a/tests/sync/from-iterator.js b/tests/sync/from-iterator.cjs similarity index 100% rename from tests/sync/from-iterator.js rename to tests/sync/from-iterator.cjs diff --git a/tests/sync/instance-of-iterator.js b/tests/sync/instance-of-iterator.cjs similarity index 100% rename from tests/sync/instance-of-iterator.js rename to tests/sync/instance-of-iterator.cjs diff --git a/tests/sync/iterator-prototype-@@toStringTag.js b/tests/sync/iterator-prototype-@@toStringTag.cjs similarity index 100% rename from tests/sync/iterator-prototype-@@toStringTag.js rename to tests/sync/iterator-prototype-@@toStringTag.cjs diff --git a/tests/sync/iterator-prototype-asIndexedPairs.js b/tests/sync/iterator-prototype-asIndexedPairs.cjs similarity index 100% rename from tests/sync/iterator-prototype-asIndexedPairs.js rename to tests/sync/iterator-prototype-asIndexedPairs.cjs diff --git a/tests/sync/iterator-prototype-drop.js b/tests/sync/iterator-prototype-drop.cjs similarity index 100% rename from tests/sync/iterator-prototype-drop.js rename to tests/sync/iterator-prototype-drop.cjs diff --git a/tests/sync/iterator-prototype-every.js b/tests/sync/iterator-prototype-every.cjs similarity index 100% rename from tests/sync/iterator-prototype-every.js rename to tests/sync/iterator-prototype-every.cjs diff --git a/tests/sync/iterator-prototype-filter.js b/tests/sync/iterator-prototype-filter.cjs similarity index 100% rename from tests/sync/iterator-prototype-filter.js rename to tests/sync/iterator-prototype-filter.cjs diff --git a/tests/sync/iterator-prototype-find.js b/tests/sync/iterator-prototype-find.cjs similarity index 100% rename from tests/sync/iterator-prototype-find.js rename to tests/sync/iterator-prototype-find.cjs diff --git a/tests/sync/iterator-prototype-flatMap.js b/tests/sync/iterator-prototype-flatMap.cjs similarity index 100% rename from tests/sync/iterator-prototype-flatMap.js rename to tests/sync/iterator-prototype-flatMap.cjs diff --git a/tests/sync/iterator-prototype-forEach.js b/tests/sync/iterator-prototype-forEach.cjs similarity index 100% rename from tests/sync/iterator-prototype-forEach.js rename to tests/sync/iterator-prototype-forEach.cjs diff --git a/tests/sync/iterator-prototype-map.js b/tests/sync/iterator-prototype-map.cjs similarity index 100% rename from tests/sync/iterator-prototype-map.js rename to tests/sync/iterator-prototype-map.cjs diff --git a/tests/sync/iterator-prototype-reduce.js b/tests/sync/iterator-prototype-reduce.cjs similarity index 100% rename from tests/sync/iterator-prototype-reduce.js rename to tests/sync/iterator-prototype-reduce.cjs diff --git a/tests/sync/iterator-prototype-some.js b/tests/sync/iterator-prototype-some.cjs similarity index 100% rename from tests/sync/iterator-prototype-some.js rename to tests/sync/iterator-prototype-some.cjs diff --git a/tests/sync/iterator-prototype-take.js b/tests/sync/iterator-prototype-take.cjs similarity index 100% rename from tests/sync/iterator-prototype-take.js rename to tests/sync/iterator-prototype-take.cjs diff --git a/tests/sync/iterator-prototype-toArray.js b/tests/sync/iterator-prototype-toArray.cjs similarity index 100% rename from tests/sync/iterator-prototype-toArray.js rename to tests/sync/iterator-prototype-toArray.cjs diff --git a/tests/test.js b/tests/test.cjs similarity index 93% rename from tests/test.js rename to tests/test.cjs index c9bee4e..7dd35b9 100644 --- a/tests/test.js +++ b/tests/test.cjs @@ -1,4 +1,4 @@ -require('..'); +require('../build/bundle.min.cjs').installIntoGlobal(); const { readdirSync } = require("fs"); const { join } = require("path"); @@ -25,4 +25,3 @@ const { join } = require("path"); } } })(); -module.exports = null;