diff --git a/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/options.json b/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/options.json index 478bc014191c..bc028a2d77d0 100644 --- a/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/options.json +++ b/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/options.json @@ -1,3 +1,4 @@ { - "plugins": ["flow", "jsx", "estree", "importAssertions"] + "plugins": ["flow", "jsx", "estree", "importAssertions"], + "sourceType": "module" } diff --git a/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/output.json b/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/output.json index 13e1bafa7935..e08a9f151de8 100644 --- a/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/output.json +++ b/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/output.json @@ -1,13 +1,10 @@ { "type": "File", "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}}, - "errors": [ - "SyntaxError: 'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)" - ], "program": { "type": "Program", "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}}, - "sourceType": "script", + "sourceType": "module", "interpreter": null, "body": [ {