Migrate to ESM and upgrade dependencies (#752)
* Migrate to ESM and upgrade dependencies * Address review: use type-only import for QualityOptions * update version to 6.0.0 in package.json and package-lock.json * Add ESM migration note to README for V6 * Update test imports for ESM and clean up devDependencies (ts-node, @types/jest) * Pin @types/node to 24.x and refine tsconfig/README wording
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import cscFile from '../.github/csc.json';
|
||||
import {describe, expect, test} from '@jest/globals';
|
||||
import cscFile from '../.github/csc.json' with {type: 'json'};
|
||||
describe('csc tests', () => {
|
||||
const regexPattern = cscFile['problemMatcher'][0]['pattern'][0]['regexp'];
|
||||
const regexResultsMap = cscFile['problemMatcher'][0]['pattern'][0];
|
||||
@@ -85,7 +86,7 @@ describe('csc tests', () => {
|
||||
expect(matchedResultsArray).not.toBeNull();
|
||||
|
||||
for (const propName in results) {
|
||||
const propertyIndex = regexResultsMap[propName];
|
||||
const propertyIndex = (regexResultsMap as any)[propName];
|
||||
const expectedPropValue = results[propName];
|
||||
const matchedPropValue = matchedResultsArray![propertyIndex];
|
||||
expect(matchedPropValue).toEqual(expectedPropValue);
|
||||
|
||||
Reference in New Issue
Block a user