···67676868 // Other non-provider-specific tests that should be run on browser mode as well
6969 '**/ignore-hints.test.ts',
7070+ '**/import-attributes.test.ts',
7071 '**/multi-suite.test.ts',
7172 '**/setup-files.test.ts',
7273 '**/results-snapshot.test.ts',
+9
packages/coverage-istanbul/src/provider.ts
···2828import libCoverage from 'istanbul-lib-coverage'
2929import libSourceMaps from 'istanbul-lib-source-maps'
3030import { type Instrumenter, createInstrumenter } from 'istanbul-lib-instrument'
3131+// @ts-expect-error @istanbuljs/schema has no type definitions
3232+import { defaults as istanbulDefaults } from '@istanbuljs/schema'
31333234// @ts-expect-error missing types
3335import _TestExclude from 'test-exclude'
···116118 coverageGlobalScope: 'globalThis',
117119 coverageGlobalScopeFunc: false,
118120 ignoreClassMethods: this.options.ignoreClassMethods,
121121+ parserPlugins: [
122122+ ...istanbulDefaults.instrumenter.parserPlugins,
123123+ ['importAttributes', { deprecatedAssertSyntax: true }],
124124+ ],
125125+ generatorOpts: {
126126+ importAttributesKeyword: 'with',
127127+ },
119128 })
120129121130 this.testExclude = new _TestExclude({