Skip to content

Commit

Permalink
Test with false source map instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Jun 24, 2020
1 parent 9edbaf4 commit 94773d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/integration/config-devtool-dev/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
webpack: (config) => {
config.devtool = 'source-map'
config.devtool = false
return config
},
}
5 changes: 4 additions & 1 deletion test/integration/config-devtool-dev/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ describe('devtool set in developmemt mode in next config', () => {

const appPort = await findPort()
const app = await launchApp(join(__dirname, '..'), appPort, {
env: { __NEXT_TEST_WITH_DEVTOOL: true },
onStderr(msg) {
stderr += msg || ''
},
Expand All @@ -33,7 +34,9 @@ describe('devtool set in developmemt mode in next config', () => {
// frames, which is a more robust test
it('should revert to the original devtool when user set in development mode', async () => {
const appPort = await findPort()
const app = await launchApp(join(__dirname, '..'), appPort)
const app = await launchApp(join(__dirname, '..'), appPort, {
env: { __NEXT_TEST_WITH_DEVTOOL: true },
})
const browserFiles = await recursiveReadDir(
join(appDir, '.next', 'static'),
/.*/
Expand Down

0 comments on commit 94773d5

Please sign in to comment.