We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This two-step process works:
tsc --project tsconfig.json
karma start
Here is a copy of the tsconfig.json:
tsconfig.json
{ "compilerOptions": { "module": "es2020", "moduleResolution": "node", "target": "es2020", "declaration": true, "noImplicitAny": false, "noImplicitThis": true, "noResolve": true, "allowJs": true, "allowSyntheticDefaultImports": true, "esModuleInterop": true, }, "exclude": [ "node_modules", "karma.conf.js" ] }
Here is a copy of the karma,conf.js:
karma,conf.js
module.exports = function(config) { config.set({ basePath: "", frameworks: ["jasmine"], files: [ { pattern: "**/*.test.js", type: "module", included: true }, { pattern: "**/*.js", type: "module", included: false } ], exclude: [], preprocessors: {}, reporters: ["spec"], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: ["Chrome"], singleRun: true, concurrency: Infinity }); };
This one-step process using karma-typescript does not work:
karma-typescript
Here is a copy of the karma,conf.js after installing karma-typescript:
module.exports = function(config) { config.set({ basePath: "", frameworks: ["jasmine", "karma-typescript"], files: [ { pattern: "**/*.test.ts", type: "module", included: true }, { pattern: "**/*.ts", type: "module", included: false } ], exclude: [], preprocessors: { "**/*.ts": ["karma-typescript"] }, reporters: ["spec", "karma-typescript"], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: ["Chrome"], singleRun: true, concurrency: Infinity }); };
Here is a screenshot of the errors:
How can I set up karma to use the typescript files rather than the compiled javascript files?
The text was updated successfully, but these errors were encountered:
Please remove the output js files created by tsc, otherwise they will be used instead of the expected output of karma-typescript.
Sorry, something went wrong.
No branches or pull requests
This two-step process works:
tsc --project tsconfig.json
karma start
Here is a copy of the
tsconfig.json
:Here is a copy of the
karma,conf.js
:This one-step process using
karma-typescript
does not work:Here is a copy of the
karma,conf.js
after installingkarma-typescript
:Here is a screenshot of the errors:
How can I set up karma to use the typescript files rather than the compiled javascript files?
The text was updated successfully, but these errors were encountered: