Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
feat(test): serve lib/ files instead of dist/
Browse files Browse the repository at this point in the history
relates to #98
  • Loading branch information
vicb committed May 9, 2015
1 parent 9ef2add commit f835213
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
4 changes: 2 additions & 2 deletions karma-browserify.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module.exports = function (config) {
basePath: '',
files: [
'test/util.js',
{pattern: 'lib/zone.js', watched: true, served: false, included: false},
'test/commonjs.spec.js',
{pattern: 'test/assets/**/*.html', watched: true, served: true, included: false}
{pattern: 'test/assets/**/*.html', watched: true, served: true, included: false},
{pattern: 'lib/**/*.js', watched: true, served: false, included: false}
],

reporters: ['progress'],
Expand Down
11 changes: 8 additions & 3 deletions karma-microtasks.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ module.exports = function (config) {
basePath: '',
files: [
'test/util.js',
'dist/zone-microtask.js',
'test/setup-microtask.js',
'dist/*-zone.js',
'test/jasmine-patch.js',
'test/microtasks.spec.js',
{pattern: 'test/assets/**/*.html', watched: true, served: true, included: false}
{pattern: 'test/assets/**/*.html', watched: true, served: true, included: false},
{pattern: 'lib/**/*.js', watched: true, served: false, included: false}
],

preprocessors: {
'test/setup-microtask.js': [ 'browserify' ]
},

reporters: ['progress'],

//port: 9876,
Expand All @@ -20,7 +25,7 @@ module.exports = function (config) {
logLevel: config.LOG_INFO,

browsers: ['Firefox'],
frameworks: ['jasmine'],
frameworks: ['jasmine', 'browserify'],

captureTimeout: 60000,

Expand Down
11 changes: 8 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@ module.exports = function (config) {
basePath: '',
files: [
'test/util.js',
'dist/zone.js',
'test/setup.js',
'dist/*-zone.js',
'test/jasmine-patch.js',
//'test/lib/brick.js',
'test/**/*.spec.js',
{pattern: 'test/assets/**/*.html', watched: true, served: true, included: false}
{pattern: 'test/assets/**/*.html', watched: true, served: true, included: false},
{pattern: 'lib/**/*.js', watched: true, served: false, included: false}
],

preprocessors: {
'test/setup.js': [ 'browserify' ]
},

exclude: [
'test/commonjs.spec.js',
'test/microtasks.spec.js'
Expand All @@ -26,7 +31,7 @@ module.exports = function (config) {
logLevel: config.LOG_INFO,

browsers: ['Firefox'],
frameworks: ['jasmine'],
frameworks: ['jasmine', 'browserify'],

captureTimeout: 60000,

Expand Down
2 changes: 2 additions & 0 deletions test/setup-microtask.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Setup tests for Zone with microtask support
require('../lib/browser/zone-microtask.js');
2 changes: 2 additions & 0 deletions test/setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Setup tests for Zone without microtask support
require('../lib/browser/zone.js');

0 comments on commit f835213

Please sign in to comment.