Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @web-stories-wp prefix to karma packages name #8558

Merged
merged 10 commits into from
Aug 6, 2021
16 changes: 8 additions & 8 deletions karma-dashboard.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ module.exports = function (config) {
'karma-webpack',
'karma-spec-reporter',
'karma-coverage-istanbul-reporter',
require('./packages/karma-puppeteer-launcher/src/index.cjs'),
require('./packages/karma-puppeteer-client/src/index.cjs'),
require('./packages/karma-cuj-reporter/src/index.cjs'),
require('./packages/karma-failed-tests-reporter/src/index.cjs'),
require('@web-stories-wp/karma-puppeteer-launcher'),
require('@web-stories-wp/karma-puppeteer-client'),
require('@web-stories-wp/karma-cuj-reporter'),
require('@web-stories-wp/karma-failed-tests-reporter'),
],

// Frameworks to use.
// Available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine', 'karma-puppeteer-client'],
frameworks: ['jasmine', '@web-stories-wp/karma-puppeteer-client'],
swissspidy marked this conversation as resolved.
Show resolved Hide resolved

// list of files / patterns to load in the browser
files: [
Expand Down Expand Up @@ -103,8 +103,8 @@ module.exports = function (config) {
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: [
'spec',
'failed-tests',
config.coverage && 'cuj',
'@web-stories-wp/karma-failed-tests-reporter',
config.coverage && '@web-stories-wp/karma-cuj-reporter',
config.coverage && 'coverage-istanbul',
].filter(Boolean),

Expand All @@ -123,7 +123,7 @@ module.exports = function (config) {

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['puppeteer'],
browsers: ['karma-puppeteer-launcher'], // @web-stories-wp/karma-puppeteer-launcher package

puppeteerLauncher: {
puppeteer: {
Expand Down
16 changes: 8 additions & 8 deletions karma-edit-story.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ module.exports = function (config) {
'karma-webpack',
'karma-spec-reporter',
'karma-coverage-istanbul-reporter',
require('./packages/karma-puppeteer-launcher/src/index.cjs'),
require('./packages/karma-puppeteer-client/src/index.cjs'),
require('./packages/karma-cuj-reporter/src/index.cjs'),
require('./packages/karma-failed-tests-reporter/src/index.cjs'),
require('@web-stories-wp/karma-puppeteer-launcher'),
require('@web-stories-wp/karma-puppeteer-client'),
require('@web-stories-wp/karma-cuj-reporter'),
require('@web-stories-wp/karma-failed-tests-reporter'),
],

// Frameworks to use.
// Available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine', 'karma-puppeteer-client'],
frameworks: ['jasmine', '@web-stories-wp/karma-puppeteer-client'],

// list of files / patterns to load in the browser
files: [
Expand Down Expand Up @@ -103,8 +103,8 @@ module.exports = function (config) {
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: [
'spec',
'failed-tests',
config.coverage && 'cuj',
'@web-stories-wp/karma-failed-tests-reporter',
config.coverage && '@web-stories-wp/karma-cuj-reporter',
config.coverage && 'coverage-istanbul',
].filter(Boolean),

Expand All @@ -123,7 +123,7 @@ module.exports = function (config) {

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['puppeteer'],
browsers: ['karma-puppeteer-launcher'], // @web-stories-wp/karma-puppeteer-launcher package

puppeteerLauncher: {
puppeteer: {
Expand Down
Loading