Skip to content

Commit 9360b8e

Browse files
committed
loader: integration tests
1 parent aac8123 commit 9360b8e

File tree

7 files changed

+175
-236
lines changed

7 files changed

+175
-236
lines changed

karma.integration.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var testFiles = [
1111
{pattern: 'test/integration/frame.html', included: false},
1212
'test/integration/test.js',
1313
'test/globals.js',
14-
'build/raven.js',
14+
'build/raven.js'
1515
];
1616

1717
module.exports = function(config) {

karma.loader.config.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
var commonConfig = require('./karma.config');
2+
3+
var testFiles = [
4+
{pattern: 'node_modules/es6-promise/dist/es6-promise.auto.js', included: false},
5+
{pattern: 'test/integration/loader.html', included: false},
6+
{pattern: 'build/raven.js', included: false},
7+
{pattern: 'src/loader.js', included: false},
8+
'test/integration/loader-test.js'
9+
];
10+
11+
module.exports = function(config) {
12+
var testConfig = Object.assign({}, commonConfig, {files: testFiles});
13+
config.set(testConfig);
14+
};

package-lock.json

+1-197
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@
1919
"lint": "eslint .",
2020
"precommit": "lint-staged",
2121
"publish": "grunt publish",
22-
"test": "npm run lint && grunt build.test && npm run test:unit && npm run test:integration && npm run test:typescript",
22+
"test": "npm run lint && grunt build.test && npm run test:unit && npm run test:integration && npm run test:loader && npm run test:typescript",
2323
"test:karma:unit": "karma start karma.unit.config.js",
2424
"test:karma:integration": "karma start karma.integration.config.js ",
25+
"test:karma:loader": "karma start karma.loader.config.js ",
2526
"test:karma:sauce": "karma start karma.sauce.config.js ",
2627
"test:unit": "npm run test:karma:unit -- --single-run",
2728
"test:integration": "npm run test:karma:integration -- --single-run",
29+
"test:loader": "npm run test:karma:loader -- --single-run",
2830
"test:typescript": "tsc --noEmit --noImplicitAny typescript/raven-tests.ts",
2931
"test:ci": "npm run lint && grunt test:ci && npm run test:karma:sauce",
3032
"test:size": "grunt dist && bundlesize && git checkout -- dist/"

0 commit comments

Comments
 (0)