Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/integration-karma/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Karma integration test for `@lwc/compiler`, `@lwc/engine-dom`, and `@lwc/synthet

Starts the Karma server in `watch` mode and start Google Chrome. Note that you can open different browsers to run the tests in parallel on all the browsers. While the server in running, updating a fixture will trigger the suite to run.

### `yarn start:hydration`
### `yarn hydration:start`

Starts the Karma server in `watch` mode and start Google Chrome, to run the hydration test suite. Note that you can open different browsers to run the tests in parallel on all the browsers. While the server in running, updating a fixture will trigger the suite to run.

### `yarn test`

Run the test suite a single time on Google Chrome.

### `yarn test:hydration`
### `yarn hydration:test`

Run the hydration test suite a single time on Google Chrome.

Expand Down
4 changes: 2 additions & 2 deletions packages/integration-karma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"version": "2.13.1",
"scripts": {
"start": "karma start ./scripts/karma-configs/test/local.js",
"test": "karma start ./scripts/karma-configs/test/local.js --single-run --browsers Chrome",
"test": "karma start ./scripts/karma-configs/test/local.js --single-run --browsers ChromeHeadless",
"test:compat": "COMPAT=1 yarn test",
"test:native": "DISABLE_SYNTHETIC=1 yarn test",
"hydration:start": "karma start ./scripts/karma-configs/hydration/local.js",
"hydration:test": "karma start ./scripts/karma-configs/hydration/local.js --single-run --browsers Chrome",
"hydration:test": "karma start ./scripts/karma-configs/hydration/local.js --single-run --browsers ChromeHeadless",
"hydration:sauce": "karma start ./scripts/karma-configs/hydration/sauce.js --single-run",
"sauce": "karma start ./scripts/karma-configs/test/sauce.js --single-run",
"coverage": "node ./scripts/merge-coverage.js"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ const TEST_UTILS = require.resolve('../../../helpers/test-utils');
const TEST_SETUP = require.resolve('../../../helpers/test-setup');
const TEST_HYDRATE = require.resolve('../../../helpers/test-hydrate');

// Fix Node warning about >10 event listeners ("Possible EventEmitter memory leak detected").
// This is due to the fact that we are running so many simultaneous rollup commands
// on so many files. For every `*.spec.js` file, Rollup adds a listener at
// this line: https://github.com/rollup/rollup/blob/35cbfae/src/utils/hookActions.ts#L37
process.setMaxListeners(1000);

function getFiles() {
return [
createPattern(LWC_ENGINE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ const TEST_UTILS = require.resolve('../../../helpers/test-utils');
const WIRE_SETUP = require.resolve('../../../helpers/wire-setup');
const TEST_SETUP = require.resolve('../../../helpers/test-setup');

// Fix Node warning about >10 event listeners ("Possible EventEmitter memory leak detected").
// This is due to the fact that we are running so many simultaneous rollup commands
// on so many files. For every `*.spec.js` file, Rollup adds a listener at
// this line: https://github.com/rollup/rollup/blob/35cbfae/src/utils/hookActions.ts#L37
process.setMaxListeners(1000);

function getFiles() {
const frameworkFiles = [];

Expand Down
6 changes: 0 additions & 6 deletions packages/integration-karma/scripts/karma-plugins/lwc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ const compatRollupPlugin = require('rollup-plugin-compat');
const { COMPAT } = require('../shared/options');
const Watcher = require('./Watcher');

// Fix Node warning about >10 event listeners ("Possible EventEmitter memory leak detected").
// This is due to the fact that we are running so many simultaneous rollup commands
// on so many files. For every `*.spec.js` file, Rollup adds a listener at
// this line: https://github.com/rollup/rollup/blob/35cbfae/src/utils/hookActions.ts#L37
process.setMaxListeners(1000);

function createPreprocessor(config, emitter, logger) {
const { basePath } = config;

Expand Down