Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Apr 24, 2020
1 parent 1703fa6 commit d5a9df2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/core/integration-tests/test/sourcemaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import SourceMap from '@parcel/source-map';
import {
bundle,
assertBundleTree,
distDir,
inputFS,
outputFS,
shallowEqual,
Expand Down Expand Up @@ -878,6 +879,20 @@ describe('sourcemaps', function() {
assert.deepEqual(map.sources, ['index.js']);
});

it('should respect --no-source-maps', async function() {
let b = await bundle(
path.join(__dirname, '/integration/sourcemap/index.js'),
{
sourceMaps: false,
},
);

assert.deepStrictEqual(
await outputFS.readdir(path.dirname(b.getBundles()[0].filePath)),
['index.js'],
);
});

it.skip('should load existing sourcemaps for CSS files', async function() {
async function test(minify) {
let b = await bundle(
Expand Down

0 comments on commit d5a9df2

Please sign in to comment.