diff --git a/test/fixture/_external-deps-included.json b/test/fixture/_external-deps-included.json index c407cd737..eaa4fa81b 100644 --- a/test/fixture/_external-deps-included.json +++ b/test/fixture/_external-deps-included.json @@ -4,26 +4,26 @@ "tags": [], "loc": { "start": { - "line": 5, + "line": 7, "column": 0 }, "end": { - "line": 7, + "line": 9, "column": 3 } }, "context": { "loc": { "start": { - "line": 8, + "line": 10, "column": 0 }, "end": { - "line": 11, + "line": 13, "column": 1 } }, - "code": "require('external');\nrequire('external2');\nrequire('module-not-found');\n\n/**\n * I am in `external.input.js`.\n */\nfunction foo() {\n 'use strict';\n return 'bar';\n}\n\nmodule.exports = foo;\n" + "code": "require('external');\nrequire('external2');\nrequire('module-not-found');\n// non-js require\nrequire('./polyglot/blend.cpp');\n\n/**\n * I am in `external.input.js`.\n */\nfunction foo() {\n 'use strict';\n return 'bar';\n}\n\nmodule.exports = foo;\n" }, "errors": [], "name": "foo", diff --git a/test/fixture/external.input.js b/test/fixture/external.input.js index ae2cab40c..d156ef676 100644 --- a/test/fixture/external.input.js +++ b/test/fixture/external.input.js @@ -1,6 +1,8 @@ require('external'); require('external2'); require('module-not-found'); +// non-js require +require('./polyglot/blend.cpp'); /** * I am in `external.input.js`. diff --git a/test/fixture/external.output.json b/test/fixture/external.output.json index 786b13c63..86938298d 100644 --- a/test/fixture/external.output.json +++ b/test/fixture/external.output.json @@ -4,26 +4,26 @@ "tags": [], "loc": { "start": { - "line": 5, + "line": 7, "column": 0 }, "end": { - "line": 7, + "line": 9, "column": 3 } }, "context": { "loc": { "start": { - "line": 8, + "line": 10, "column": 0 }, "end": { - "line": 11, + "line": 13, "column": 1 } }, - "code": "require('external');\nrequire('external2');\nrequire('module-not-found');\n\n/**\n * I am in `external.input.js`.\n */\nfunction foo() {\n 'use strict';\n return 'bar';\n}\n\nmodule.exports = foo;\n" + "code": "require('external');\nrequire('external2');\nrequire('module-not-found');\n// non-js require\nrequire('./polyglot/blend.cpp');\n\n/**\n * I am in `external.input.js`.\n */\nfunction foo() {\n 'use strict';\n return 'bar';\n}\n\nmodule.exports = foo;\n" }, "errors": [], "name": "foo", diff --git a/test/fixture/internal.output.json b/test/fixture/internal.output.json index 786b13c63..86938298d 100644 --- a/test/fixture/internal.output.json +++ b/test/fixture/internal.output.json @@ -4,26 +4,26 @@ "tags": [], "loc": { "start": { - "line": 5, + "line": 7, "column": 0 }, "end": { - "line": 7, + "line": 9, "column": 3 } }, "context": { "loc": { "start": { - "line": 8, + "line": 10, "column": 0 }, "end": { - "line": 11, + "line": 13, "column": 1 } }, - "code": "require('external');\nrequire('external2');\nrequire('module-not-found');\n\n/**\n * I am in `external.input.js`.\n */\nfunction foo() {\n 'use strict';\n return 'bar';\n}\n\nmodule.exports = foo;\n" + "code": "require('external');\nrequire('external2');\nrequire('module-not-found');\n// non-js require\nrequire('./polyglot/blend.cpp');\n\n/**\n * I am in `external.input.js`.\n */\nfunction foo() {\n 'use strict';\n return 'bar';\n}\n\nmodule.exports = foo;\n" }, "errors": [], "name": "foo",