From 532610c7b309b96cd580fb016fae6074f292323c Mon Sep 17 00:00:00 2001 From: Timothy Asquith Date: Sat, 29 Feb 2020 09:40:41 +1100 Subject: [PATCH] Tests now expect new missing export message format --- test/function/samples/circular-missed-reexports-2/_config.js | 2 +- test/function/samples/default-not-reexported/_config.js | 2 +- .../_config.js | 2 +- test/function/samples/import-of-unexported-fails/_config.js | 2 +- test/function/samples/reexport-missing-error/_config.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/function/samples/circular-missed-reexports-2/_config.js b/test/function/samples/circular-missed-reexports-2/_config.js index df2bf9004dd..e17a190410c 100644 --- a/test/function/samples/circular-missed-reexports-2/_config.js +++ b/test/function/samples/circular-missed-reexports-2/_config.js @@ -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: [ diff --git a/test/function/samples/default-not-reexported/_config.js b/test/function/samples/default-not-reexported/_config.js index 947141dbbbb..be866dd0b30 100644 --- a/test/function/samples/default-not-reexported/_config.js +++ b/test/function/samples/default-not-reexported/_config.js @@ -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'), diff --git a/test/function/samples/error-after-transform-should-throw-correct-location/_config.js b/test/function/samples/error-after-transform-should-throw-correct-location/_config.js index 23001b3ba56..58c2caa9550 100644 --- a/test/function/samples/error-after-transform-should-throw-correct-location/_config.js +++ b/test/function/samples/error-after-transform-should-throw-correct-location/_config.js @@ -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: { diff --git a/test/function/samples/import-of-unexported-fails/_config.js b/test/function/samples/import-of-unexported-fails/_config.js index 0db25ac0ad5..6f5fa5552b2 100644 --- a/test/function/samples/import-of-unexported-fails/_config.js +++ b/test/function/samples/import-of-unexported-fails/_config.js @@ -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: { diff --git a/test/function/samples/reexport-missing-error/_config.js b/test/function/samples/reexport-missing-error/_config.js index 032dc7b3c7e..5a17f6c2bd5 100644 --- a/test/function/samples/reexport-missing-error/_config.js +++ b/test/function/samples/reexport-missing-error/_config.js @@ -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: {