Socket
Socket
Sign inDemoInstall

@web/test-runner-core

Package Overview
Dependencies
Maintainers
6
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web/test-runner-core - npm Package Compare versions

Comparing version 0.5.7 to 0.6.0

dist/runner/TestRunnerCoreConfig.d.ts

15

CHANGELOG.md
# @web/test-runner-core
## 0.6.0
### Minor Changes
- c4cb321: Use web dev server in test runner. This contains multiple breaking changes:
- Browsers that don't support es modules are not supported for now. We will add this back later.
- Most es-dev-server config options are no longer available. The only options that are kept are `plugins`, `middleware`, `nodeResolve` and `preserveSymlinks`.
- Test runner config changes:
- Dev server options are not available on the root level of the configuration file.
- `nodeResolve` is no longer enabled by default. You can enable it with the `--node-resolve` flag or `nodeResolve` option.
- `middlewares` option is now called `middleware`.
- `testFrameworkImport` is now called `testFramework`.
- `address` is now split into `protocol` and `hostname`.
## 0.5.7

@@ -4,0 +19,0 @@

4

dist/browser-launcher/BrowserLauncher.d.ts

@@ -1,2 +0,2 @@

import { TestRunnerConfig } from '../runner/TestRunnerConfig';
import { TestRunnerCoreConfig } from '../runner/TestRunnerCoreConfig';
import { TestSession } from '../test-session/TestSession';

@@ -9,3 +9,3 @@ export interface BrowserLauncher {

*/
start(config: TestRunnerConfig): Promise<string[]>;
start(config: TestRunnerCoreConfig): Promise<string[]>;
/**

@@ -12,0 +12,0 @@ * One time teardown for the browser launcher. Called when the test runner

import { CoverageSummaryData, CoverageMap } from 'istanbul-lib-coverage';
import { TestSession } from '../test-session/TestSession';
import { CoverageThresholdConfig } from '../runner/TestRunnerConfig';
import { CoverageThresholdConfig } from '../runner/TestRunnerCoreConfig';
export declare const coverageTypes: (keyof CoverageSummaryData)[];

@@ -5,0 +5,0 @@ export interface TestCoverage {

@@ -5,3 +5,3 @@ import * as constants from './browser-launcher/constants';

export { TestRunner } from './runner/TestRunner';
export { TestRunnerConfig, CoverageConfig, CoverageThresholdConfig, } from './runner/TestRunnerConfig';
export { TestRunnerCoreConfig, CoverageConfig, CoverageThresholdConfig, } from './runner/TestRunnerCoreConfig';
export { TestCoverage } from './coverage/getTestCoverage';

@@ -8,0 +8,0 @@ export { Server } from './server/Server';

@@ -1,5 +0,5 @@

import { TestRunnerConfig } from './TestRunnerConfig';
import { TestRunnerCoreConfig } from './TestRunnerCoreConfig';
import { TestSession } from '../test-session/TestSession';
export declare function toBrowserPath(filePath: string): string;
export declare function createSessionUrl(config: TestRunnerConfig, session: TestSession, debug: boolean): string;
export declare function createSessionUrl(config: TestRunnerCoreConfig, session: TestSession, debug: boolean): string;
//# sourceMappingURL=createSessionUrl.d.ts.map

@@ -25,5 +25,5 @@ "use strict";

const params = `?${constants_1.PARAM_SESSION_ID}=${session.id}${debug ? `&${constants_1.PARAM_DEBUG}=true` : ''}`;
return `${config.address}:${config.port}${browserPath}${params}`;
return `${config.protocol}//${config.hostname}:${config.port}${browserPath}${params}`;
}
exports.createSessionUrl = createSessionUrl;
//# sourceMappingURL=createSessionUrl.js.map

@@ -1,2 +0,2 @@

import { TestRunnerConfig } from './TestRunnerConfig';
import { TestRunnerCoreConfig } from './TestRunnerCoreConfig';
import { TestSession } from '../test-session/TestSession';

@@ -18,3 +18,3 @@ import { TestCoverage } from '../coverage/getTestCoverage';

export declare class TestRunner extends EventEmitter<EventMap> {
config: TestRunnerConfig;
config: TestRunnerCoreConfig;
sessions: TestSessionManager;

@@ -31,3 +31,3 @@ browserNames: string[];

private scheduler;
constructor(config: TestRunnerConfig, testFiles: string[]);
constructor(config: TestRunnerCoreConfig, testFiles: string[]);
start(): Promise<void>;

@@ -34,0 +34,0 @@ runTests(sessions: Iterable<TestSession>): Promise<void>;

@@ -1,2 +0,2 @@

import { TestRunnerConfig } from './TestRunnerConfig';
import { TestRunnerCoreConfig } from './TestRunnerCoreConfig';
import { TestSessionManager } from '../test-session/TestSessionManager';

@@ -8,3 +8,3 @@ import { TestSession } from '../test-session/TestSession';

private timeoutIdsPerSession;
constructor(config: TestRunnerConfig, sessions: TestSessionManager);
constructor(config: TestRunnerCoreConfig, sessions: TestSessionManager);
stop(): void;

@@ -11,0 +11,0 @@ private addTimeoutId;

@@ -1,6 +0,6 @@

import { TestRunnerConfig } from '../runner/TestRunnerConfig.js';
import { TestRunnerCoreConfig } from '../runner/TestRunnerCoreConfig.js';
import { TestSessionManager } from '../test-session/TestSessionManager.js';
import { TestRunner } from '../runner/TestRunner.js';
export interface ServerStartArgs {
config: TestRunnerConfig;
config: TestRunnerCoreConfig;
sessions: TestSessionManager;

@@ -7,0 +7,0 @@ runner: TestRunner;

{
"name": "@web/test-runner-core",
"version": "0.5.7",
"version": "0.6.0",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -14,4 +14,4 @@ # Web Test Runner Core

- [@web/test-runner-playwright](https://github.com/modernweb-dev/web/tree/master/packages/test-runner-playwright)
- `@web/test-runner-selenium` (coming soon)
- `@web/test-runner-browserstack` (coming soon)
- [@web/test-runner-selenium](https://github.com/modernweb-dev/web/tree/master/packages/test-runner-selenium)
- [@web/test-runner-browserstack](https://github.com/modernweb-dev/web/tree/master/packages/test-runner-browserstack)

@@ -18,0 +18,0 @@ [Read more here](./docs/browser-launcher.md) to learn about creating your own browser launcher.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc