Skip to content

Commit d23b096

Browse files
committed
Remove test
1 parent fadbef6 commit d23b096

3 files changed

Lines changed: 0 additions & 46 deletions

File tree

heft-plugins/heft-sass-plugin/src/test/SassProcessor.test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -777,22 +777,6 @@ describe(SassProcessor.name, () => {
777777
expect(parsedMap.sources.every((s: string) => !s.startsWith('data:'))).toBe(true);
778778
});
779779

780-
it('emits a valid .css.map when the entry file uses a pkg: import (Linux/macOS regression)', async () => {
781-
// pkg: imports go through _canonicalizePackageInnerAsync before reaching loadAsync.
782-
// Without sourceMapUrl, the same data: URL crash applies to this path.
783-
const { processor } = createProcessor(terminalProvider, { sourceMap: true });
784-
await compileFixtureAsync(processor, 'pkg-import-test.module.scss');
785-
786-
const mapPaths: string[] = getAllWrittenPathsMatching('.css.map');
787-
expect(mapPaths).toHaveLength(1);
788-
789-
const mapJson: string = getWrittenFile('pkg-import-test.module.css.map');
790-
const parsedMap: { version: number; mappings: string; sources: string[] } = JSON.parse(mapJson);
791-
expect(parsedMap.version).toBe(3);
792-
expect(parsedMap.mappings).toBeTruthy();
793-
expect(parsedMap.sources.every((s: string) => !s.startsWith('data:'))).toBe(true);
794-
});
795-
796780
it('does not emit .css.map or sourceMappingURL comment by default', async () => {
797781
const { processor } = createProcessor(terminalProvider);
798782
await compileFixtureAsync(processor, 'classes-and-exports.module.scss');

heft-plugins/heft-sass-plugin/src/test/__snapshots__/SassProcessor.test.ts.snap

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,30 +1360,6 @@ export default styles;",
13601360
}
13611361
`;
13621362

1363-
exports[`SassProcessor sourceMap option emits a valid .css.map when the entry file uses a pkg: import (Linux/macOS regression): terminal-output 1`] = `
1364-
Array [
1365-
"[verbose] Checking for changes to 1 files...[n]",
1366-
"[ log] Compiling 1 files...[n]",
1367-
]
1368-
`;
1369-
1370-
exports[`SassProcessor sourceMap option emits a valid .css.map when the entry file uses a pkg: import (Linux/macOS regression): written-files 1`] = `
1371-
Map {
1372-
"/fake/output/dts/pkg-import-test.module.scss.d.ts" => "declare interface IStyles {
1373-
box: string;
1374-
}
1375-
declare const styles: IStyles;
1376-
export default styles;",
1377-
"/fake/output/css/pkg-import-test.module.css" => ".box {
1378-
color: #ff0000;
1379-
font-size: 12px;
1380-
}
1381-
/*# sourceMappingURL=pkg-import-test.module.css.map */
1382-
",
1383-
"/fake/output/css/pkg-import-test.module.css.map" => "{\\"version\\":3,\\"sourceRoot\\":\\"\\",\\"sources\\":[\\"fixtures/pkg-import-test.module.scss\\",\\"fixtures/node_modules/@test/tokens/index.scss\\"],\\"names\\":[],\\"mappings\\":\\"AAEA;EACE,OCHW;EDIX,WCHU\\",\\"sourcesContent\\":[\\"@use 'pkg:@test/tokens' as t;\\\\n\\\\n.box {\\\\n color: t.$test-color;\\\\n font-size: t.$test-size;\\\\n}\\\\n\\",\\"$test-color: #ff0000;\\\\n$test-size: 12px;\\\\n\\"],\\"file\\":\\"pkg-import-test.module.css\\"}",
1384-
}
1385-
`;
1386-
13871363
exports[`SassProcessor sourceMap option uses the correct map filename when doNotTrimOriginalFileExtension is true: terminal-output 1`] = `
13881364
Array [
13891365
"[verbose] Checking for changes to 1 files...[n]",

heft-plugins/heft-sass-plugin/src/test/fixtures/pkg-import-test.module.scss

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)