summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorRongjian Zhang <pd4d10@gmail.com>2019-11-24 12:40:40 +0800
committerMichaƫl Zasso <targos@protonmail.com>2019-12-09 10:23:06 +0100
commit851f3135aba0fdbf0fc89f1ef346adf438f4c399 (patch)
treecfea5f1aa81bdd5746031f4c18a78e420a1442c7 /test/fixtures
parent55a270b5837b2c4a2a63fc6a7ef4dcd85856a3bd (diff)
downloadnode-new-851f3135aba0fdbf0fc89f1ef346adf438f4c399.tar.gz
module: add warnings for experimental flags
PR-URL: https://github.com/nodejs/node/pull/30617 Fixes: https://github.com/nodejs/node/issues/30600 Reviewed-By: Guy Bedford <guybedford@gmail.com>
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/es-modules/conditional-exports.js1
-rw-r--r--test/fixtures/es-modules/json-modules.mjs1
-rw-r--r--test/fixtures/es-modules/wasm-modules.mjs2
-rw-r--r--test/fixtures/node_modules/pkgexports/resolve-self.js1
4 files changed, 5 insertions, 0 deletions
diff --git a/test/fixtures/es-modules/conditional-exports.js b/test/fixtures/es-modules/conditional-exports.js
new file mode 100644
index 0000000000..b480078bfc
--- /dev/null
+++ b/test/fixtures/es-modules/conditional-exports.js
@@ -0,0 +1 @@
+require('pkgexports/condition')
diff --git a/test/fixtures/es-modules/json-modules.mjs b/test/fixtures/es-modules/json-modules.mjs
new file mode 100644
index 0000000000..fa3f936bac
--- /dev/null
+++ b/test/fixtures/es-modules/json-modules.mjs
@@ -0,0 +1 @@
+import secret from '../experimental.json';
diff --git a/test/fixtures/es-modules/wasm-modules.mjs b/test/fixtures/es-modules/wasm-modules.mjs
new file mode 100644
index 0000000000..c56e6a926b
--- /dev/null
+++ b/test/fixtures/es-modules/wasm-modules.mjs
@@ -0,0 +1,2 @@
+import { add, addImported } from './simple.wasm';
+import { state } from './wasm-dep.mjs';
diff --git a/test/fixtures/node_modules/pkgexports/resolve-self.js b/test/fixtures/node_modules/pkgexports/resolve-self.js
new file mode 100644
index 0000000000..7bd3526aaa
--- /dev/null
+++ b/test/fixtures/node_modules/pkgexports/resolve-self.js
@@ -0,0 +1 @@
+require('@pkgexports/name/valid-cjs')