mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Make Karma serve .ts files with executable MIME type, otherwise newer versions of Chrome won't run it. Fixes #499
This commit is contained in:
@@ -13,7 +13,7 @@ describe('Counter component', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should display a title', async(() => {
|
it('should display a title', async(() => {
|
||||||
const titleText = fixture.nativeElement.querySelector('h2').textContent;
|
const titleText = fixture.nativeElement.querySelector('h1').textContent;
|
||||||
expect(titleText).toEqual('Counter');
|
expect(titleText).toEqual('Counter');
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ module.exports = function (config) {
|
|||||||
logLevel: config.LOG_INFO,
|
logLevel: config.LOG_INFO,
|
||||||
autoWatch: true,
|
autoWatch: true,
|
||||||
browsers: ['Chrome'],
|
browsers: ['Chrome'],
|
||||||
|
mime: { 'application/javascript': ['ts','tsx'] },
|
||||||
singleRun: false,
|
singleRun: false,
|
||||||
webpack: require('../../webpack.config.js').filter(config => config.target !== 'node'), // Test against client bundle, because tests run in a browser
|
webpack: require('../../webpack.config.js').filter(config => config.target !== 'node'), // Test against client bundle, because tests run in a browser
|
||||||
webpackMiddleware: { stats: 'errors-only' }
|
webpackMiddleware: { stats: 'errors-only' }
|
||||||
|
|||||||
Reference in New Issue
Block a user