mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
13 lines
455 B
JavaScript
13 lines
455 B
JavaScript
|
const path = require('path');
|
||
|
const swc = require('../../..');
|
||
|
|
||
|
it('should emit source maps as inline if requested', () => {
|
||
|
const filename = path.resolve(
|
||
|
__dirname + "/../../tests/issue-1581/foo.ts"
|
||
|
);
|
||
|
// We only check if it's not empty sourcemap.
|
||
|
expect(swc.transformFileSync(filename).code.trim()).not.toContain(
|
||
|
`eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzdGRvdXQifQ==`
|
||
|
);
|
||
|
});
|