diff --git a/package.json b/package.json index e9706fa1c..3a7c8b2de 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "dependencies": { "@angular/compiler": "12.2.16", "@babel/code-frame": "7.18.6", - "@babel/parser": "7.18.5", + "@babel/parser": "7.18.9", "@glimmer/syntax": "0.84.2", "@iarna/toml": "2.2.5", "@typescript-eslint/typescript-estree": "5.30.0", diff --git a/tests/config/format-test.js b/tests/config/format-test.js index 6106c978a..98151797d 100644 --- a/tests/config/format-test.js +++ b/tests/config/format-test.js @@ -77,6 +77,12 @@ const meriyahDisabledTests = new Set([ "../format/js/babel-plugins/decorator-auto-accessors.js" ), ]); +const babelTsDisabledTest = new Set( + [ + // Disabled temporarily https://github.com/babel/babel/issues/14777#issuecomment-1191474632 + "instantiation-expression", + ].map((directory) => path.join(__dirname, "../format/typescript", directory)) +); const isUnstable = (filename, options) => { const testFunction = unstableTests.get(filename); @@ -209,7 +215,8 @@ function runSpec(fixtures, parsers, options) { if ( parsers.includes("typescript") && !parsers.includes("babel-ts") && - !IS_TYPESCRIPT_ONLY_TEST + !IS_TYPESCRIPT_ONLY_TEST && + !babelTsDisabledTest.has(dirname) ) { allParsers.push("babel-ts"); } diff --git a/yarn.lock b/yarn.lock index 88c766e30..ea4ddb472 100644 --- a/yarn.lock +++ b/yarn.lock @@ -216,16 +216,7 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:7.18.5": - version: 7.18.5 - resolution: "@babel/parser@npm:7.18.5" - bin: - parser: ./bin/babel-parser.js - checksum: 4976349d8681af215fd5771bd5b74568cc95a2e8bf2afcf354bf46f73f3d6f08d54705f354b1d0012f914dd02a524b7d37c5c1204ccaafccb9db3c37dba96a9b - languageName: node - linkType: hard - -"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.18.6, @babel/parser@npm:^7.18.9": +"@babel/parser@npm:7.18.9, @babel/parser@npm:^7.1.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.18.6, @babel/parser@npm:^7.18.9": version: 7.18.9 resolution: "@babel/parser@npm:7.18.9" bin: @@ -6804,7 +6795,7 @@ __metadata: dependencies: "@angular/compiler": 12.2.16 "@babel/code-frame": 7.18.6 - "@babel/parser": 7.18.5 + "@babel/parser": 7.18.9 "@babel/types": 7.18.8 "@esbuild-plugins/node-modules-polyfill": 0.1.4 "@glimmer/reference": 0.84.2