Skip to content

Commit

Permalink
Merge pull request #3221 from 3scale/webpack_dev_ignore_specs
Browse files Browse the repository at this point in the history
πŸ§‘β€πŸ’» Ignore `typescript` errors from tests during development
  • Loading branch information
josemigallas authored Mar 1, 2023
2 parents e620db5 + 734c64a commit 6b5e688
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/webpack/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ environment.loaders.append('eslint', {
}
})

// HACK: this removes transpilation errors in tests during development. tsconfig includes them so
// that VS Code can work with imports. Ideally we should have a specific config for VS Code but
// the plugin automatically picks `tsconfig.json` and doesn't support a custom filename.
const tsLoader = environment.loaders.get('ts')
tsLoader.options.reportFiles = [/!(spec\/javascripts)/]

module.exports = environment.toWebpackConfig()

0 comments on commit 6b5e688

Please sign in to comment.