Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 2ceba27

Browse files
test: code (#108)
1 parent 1e785a1 commit 2ceba27

14 files changed

+229
-6
lines changed

test/__snapshots__/sourceMapperRegexp.test.js.snap

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ exports[`source-map-loader should work: result 6`] = `"absolute-sourceRoot-sourc
2222

2323
exports[`source-map-loader should work: result 7`] = `"http://sampledomain.com/external-source-map2.map"`;
2424

25-
exports[`source-map-loader should work: result 8`] = `"data:application/source-map;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLXNvdXJjZS1tYXAuanMiLCJzb3VyY2VzIjpbImlubGluZS1zb3VyY2UtbWFwLnR4dCJdLCJzb3VyY2VzQ29udGVudCI6WyJ3aXRoIFNvdXJjZU1hcCJdLCJtYXBwaW5ncyI6IkFBQUEifQ=="`;
25+
exports[`source-map-loader should work: result 8`] = `"//sampledomain.com/external-source-map2.map"`;
2626

27-
exports[`source-map-loader should work: result 9`] = `"/sample-source-map.map"`;
27+
exports[`source-map-loader should work: result 9`] = `"data:application/source-map;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLXNvdXJjZS1tYXAuanMiLCJzb3VyY2VzIjpbImlubGluZS1zb3VyY2UtbWFwLnR4dCJdLCJzb3VyY2VzQ29udGVudCI6WyJ3aXRoIFNvdXJjZU1hcCJdLCJtYXBwaW5ncyI6IkFBQUEifQ=="`;
28+
29+
exports[`source-map-loader should work: result 10`] = `"/sample-source-map.map"`;

test/cjs.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import src from '../src';
2+
import cjs from '../src/cjs';
3+
4+
describe('cjs', () => {
5+
it('should exported', () => {
6+
expect(cjs).toEqual(src);
7+
});
8+
});

test/fixtures/app.css

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/app.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/inline-sources.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Inline Sources in SourceMap
2+
//#sourceMappingURL=inline-sources.js.map
3+
// comment

test/fixtures/inline-sources.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Some content
2+
// # sourceMappingURL=//sampledomain.com/external-source-map2.map
3+
// comment
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Skip SourcesContent in SourceMap
2+
// # sourceMappingURL=skip-sourcesContent.js.map
3+
// comment

test/fixtures/skip-sourcesContent.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// with SourceMap
2+
//#sourceMappingURL=ftp://exampleurl.com
3+
// comment

0 commit comments

Comments
 (0)