Skip to content

Commit

Permalink
Point karma to UMD builds
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixHenninger committed Jul 5, 2023
1 parent fed7756 commit 69985be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/library/test/_karma/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ require(['/base/packages/library/node_modules/lodash/lodash.min'], function(_) {
.map(flavor => flavor.split('-')[1])[0] || 'default'

const libraryPath = {
coverage: '/base/packages/library/dist/lab.coverage',
legacy: '/base/packages/library/dist/lab.legacy',
}[libraryFlavor] || '/base/packages/library/dist/lab'
coverage: '/base/packages/library/dist/umd/lab.coverage',
legacy: '/base/packages/library/dist/umd/lab.legacy',
}[libraryFlavor] || '/base/packages/library/dist/umd/lab'

require.config({
// Karma serves files under /base, which is
Expand All @@ -28,8 +28,8 @@ require(['/base/packages/library/node_modules/lodash/lodash.min'], function(_) {

paths: {
'lab': libraryFlavor === 'coverage'
? '/base/packages/library/dist/lab.coverage'
: '/base/packages/library/dist/lab',
? '/base/packages/library/dist/umd/lab.coverage'
: '/base/packages/library/dist/umd/lab',
'_': '/base/packages/library/node_modules/lodash/lodash.min'
},

Expand Down
2 changes: 1 addition & 1 deletion packages/library/test/_karma/ci.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = (config) => {
files: [
'packages/library/test/_karma/bootstrap.js',
{ pattern: 'packages/library/test/static/*.*', included: false },
{ pattern: 'packages/library/dist/lab.js', included: false },
{ pattern: 'packages/library/dist/umd/lab.js', included: false },
{ pattern: 'packages/library/node_modules/lodash/lodash.min.js', included: false },
{ pattern: 'packages/library/test/**/*.js', included: false },
],
Expand Down
2 changes: 1 addition & 1 deletion packages/library/test/_karma/coverage.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = (config) => {
files: [
'packages/library/test/_karma/bootstrap.js',
{ pattern: 'packages/library/test/static/*.*', included: false },
{ pattern: 'packages/library/dist/lab.coverage.js', included: false },
{ pattern: 'packages/library/dist/umd/lab.coverage.js', included: false },
{ pattern: 'packages/library/node_modules/lodash/lodash.min.js', included: false },
{ pattern: 'packages/library/test/**/*.js', included: false },
],
Expand Down
2 changes: 1 addition & 1 deletion packages/library/test/_karma/sauce.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module.exports = (config) => {
files: [
'packages/library/test/_karma/bootstrap.js',
{ pattern: 'packages/library/test/static/*.*', included: false },
{ pattern: 'packages/library/dist/lab.js', included: false },
{ pattern: 'packages/library/dist/umd/lab.js', included: false },
{ pattern: 'packages/library/node_modules/lodash/lodash.min.js', included: false },
{ pattern: 'packages/library/test/**/*.js', included: false },
],
Expand Down

0 comments on commit 69985be

Please sign in to comment.