Skip to content

Commit

Permalink
Tests now expect new missing export message format
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Asquith committed Mar 6, 2020
1 parent 3d081e5 commit 532610c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Expand Up @@ -16,7 +16,7 @@ module.exports = {
file: path.resolve(__dirname, 'dep2.js'),
line: 1
},
message: "'doesNotExist' is not exported by dep1.js",
message: "'doesNotExist' is not exported by dep1.js, imported by dep2.js",
pos: 9,
url: 'https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module',
watchFiles: [
Expand Down
2 changes: 1 addition & 1 deletion test/function/samples/default-not-reexported/_config.js
Expand Up @@ -4,7 +4,7 @@ module.exports = {
description: 'default export is not re-exported with export *',
error: {
code: 'MISSING_EXPORT',
message: `'default' is not exported by foo.js`,
message: `'default' is not exported by foo.js, imported by main.js`,
pos: 7,
watchFiles: [
path.resolve(__dirname, 'main.js'),
Expand Down
Expand Up @@ -20,7 +20,7 @@ module.exports = {
},
error: {
code: 'MISSING_EXPORT',
message: `'default' is not exported by empty.js`,
message: `'default' is not exported by empty.js, imported by main.js`,
pos: 44,
watchFiles: [path.resolve(__dirname, 'main.js'), path.resolve(__dirname, 'empty.js')],
loc: {
Expand Down
Expand Up @@ -4,7 +4,7 @@ module.exports = {
description: 'marking an imported, but unexported, identifier should throw',
error: {
code: 'MISSING_EXPORT',
message: `'default' is not exported by empty.js`,
message: `'default' is not exported by empty.js, imported by main.js`,
pos: 7,
watchFiles: [path.resolve(__dirname, 'main.js'), path.resolve(__dirname, 'empty.js')],
loc: {
Expand Down
2 changes: 1 addition & 1 deletion test/function/samples/reexport-missing-error/_config.js
Expand Up @@ -4,7 +4,7 @@ module.exports = {
description: 'reexporting a missing identifier should print an error',
error: {
code: 'MISSING_EXPORT',
message: `'foo' is not exported by empty.js`,
message: `'foo' is not exported by empty.js, imported by main.js`,
pos: 9,
watchFiles: [path.resolve(__dirname, 'main.js'), path.resolve(__dirname, 'empty.js')],
loc: {
Expand Down

0 comments on commit 532610c

Please sign in to comment.