Comments (5)
Great, I'll try to reproduce the bug!
from karma-typescript.
@Duskfall, do you have the package source-map
in the node_modules folder? It looks like it doesn't get pulled in by npm. Also could you post your karma config here? Thanks :)
from karma-typescript.
@monounity Yes I have both source-map and source-map-support in node_modules!
karma.conf:
module.exports = function (config) {
config.set({
basePath: './',
files: [
'./Scripts/Libs/angular/angular.min.js',
'./Scripts/Libs/angular-mocks/angular-mocks.js',
'./Scripts/**/**.ts',
'./Scripts/UnitTests/Tests/Controllers/**.ts',
'./Scripts/UnitTests/Tests/Services/**.ts'
],
exclude: [],
frameworks: [
"jasmine", "karma-typescript"
],
reporters: ['progress'],
karmaTypescriptConfig: {
reports:
{
"html": "coverage",
"teamcity": "coverage",
},
remapOptions:
{
// Regex or string for excluding files, the example below is default
exclude: /(typings|Interfaces|Libs)/,
// Function for warning messages, these warnings are silent by default
warn: function (message) { }
}
},
preprocessors: {
"**/*.ts": ["karma-typescript"]
},
browsers: ['Chrome'],
autoWatch: true,
singleRun: false,
});
};
I also give you the file structure with the node_modules loaded:
[tree.txt](https://github.com/monounity/karma-typescript/files/476273/tree.txt)
from karma-typescript.
I can reproduce the problem and it looks like an older version of source-map
gets pulled in by another package. Does the problem go away if you install it manually, ie npm install source-map
?
If so, I'll fix the problem by adding the dependencies for the bundled version of remap-istanbul
package.json.
from karma-typescript.
Yes indeed it works! Both bugs seem to be resolved with the newest source-maps. Much appreciated @monounity thanks
from karma-typescript.
Related Issues (20)
- Failed build under TypeScript 4.5.2 HOT 3
- `lcovonly` does not create `lcov.info`
- karma-typescript attempts to process `node_modules` TS by default config
- request: v5.5.3 release HOT 3
- Acorn parser Ecmaversion doesn't follow Typescript target HOT 2
- The process of Decorator has mistake make the PropertyDescriptor with undefined value
- 'karmaTypescriptConfig' does not exist in type 'ConfigOptions'
- error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. HOT 3
- Coverage report not showing files with zero coverage
- `browser` field of `package.json` not used?
- KarmaTypescript Thresholds not working on TS files rather taking coverage from JS files
- Avoid adding __esModule and default properties for JSON files loaded with require
- error TS18003: No inputs were found in config file 'tsconfig.json'
- Is karma-typescript compatible with Angular 13+ ?
- npm link karma
- Typescript 5 Integration HOT 7
- Add doc deprecation for karma-typescript with recommendations HOT 2
- Exports not define error on latest typescript version
- Error: No source found for .d.ts file
- Can't find sockjs-client/dist/sockjs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karma-typescript.