@rindo/core 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/config-flags.d.ts +122 -122
- package/cli/index.cjs +2301 -2432
- package/cli/index.d.ts +19 -19
- package/cli/index.js +2302 -2433
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/rindo.d.ts +73 -73
- package/compiler/rindo.js +66137 -62812
- package/compiler/rindo.min.js +2 -2
- package/compiler/sys/in-memory-fs.d.ts +218 -218
- package/compiler/transpile.d.ts +32 -32
- package/dev-server/client/app-error.d.ts +18 -18
- package/dev-server/client/events.d.ts +6 -6
- package/dev-server/client/hmr-components.d.ts +1 -1
- package/dev-server/client/hmr-external-styles.d.ts +1 -1
- package/dev-server/client/hmr-images.d.ts +1 -1
- package/dev-server/client/hmr-inline-styles.d.ts +1 -1
- package/dev-server/client/hmr-util.d.ts +9 -9
- package/dev-server/client/hmr-window.d.ts +10 -10
- package/dev-server/client/index.d.ts +6 -6
- package/dev-server/client/index.js +781 -781
- package/dev-server/client/logger.d.ts +5 -5
- package/dev-server/client/package.json +1 -1
- package/dev-server/client/progress.d.ts +3 -3
- package/dev-server/client/status.d.ts +4 -4
- package/dev-server/connector.html +2 -2
- package/dev-server/index.d.ts +3 -3
- package/dev-server/index.js +228 -228
- package/dev-server/open-in-editor-api.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +1301 -1279
- package/dev-server/ws.js +1 -1
- package/dev-server/xdg-open +0 -0
- package/internal/app-data/index.cjs +88 -88
- package/internal/app-data/index.d.ts +4 -4
- package/internal/app-data/index.js +88 -88
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +1 -1
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +3380 -3373
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +155 -155
- package/internal/client/patch-esm.js +25 -25
- package/internal/client/shadow-css.js +382 -382
- package/internal/hydrate/package.json +1 -1
- package/internal/index.d.ts +2 -2
- package/internal/index.js +1 -1
- package/internal/package.json +1 -1
- package/internal/rindo-private.d.ts +2272 -2268
- package/internal/rindo-public-compiler.d.ts +2377 -2353
- package/internal/rindo-public-docs.d.ts +139 -139
- package/internal/rindo-public-runtime.d.ts +1636 -1636
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +4766 -4766
- package/mock-doc/index.d.ts +1006 -1006
- package/mock-doc/index.js +4766 -4766
- package/mock-doc/package.json +1 -1
- package/package.json +10 -10
- package/screenshot/connector-base.d.ts +42 -42
- package/screenshot/connector-local.d.ts +7 -7
- package/screenshot/index.d.ts +3 -3
- package/screenshot/index.js +615 -615
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.d.ts +1 -1
- package/screenshot/pixel-match.js +14 -14
- package/screenshot/screenshot-compare.d.ts +3 -3
- package/screenshot/screenshot-fs.d.ts +15 -15
- package/sys/node/autoprefixer.js +2 -2
- package/sys/node/glob.js +1 -1
- package/sys/node/graceful-fs.js +1 -1
- package/sys/node/index.d.ts +22 -22
- package/sys/node/index.js +6 -3
- package/sys/node/node-fetch.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/prompts.js +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.d.ts +12 -12
- package/testing/index.js +7 -3
- package/testing/jest/jest-config.d.ts +16 -16
- package/testing/jest/jest-environment.d.ts +15 -15
- package/testing/jest/jest-preprocessor.d.ts +59 -59
- package/testing/jest/jest-runner.d.ts +10 -10
- package/testing/jest/jest-screenshot.d.ts +2 -2
- package/testing/jest/jest-serializer.d.ts +4 -4
- package/testing/jest/jest-setup-test-framework.d.ts +1 -1
- package/testing/matchers/attributes.d.ts +14 -14
- package/testing/matchers/class-list.d.ts +12 -12
- package/testing/matchers/events.d.ts +21 -21
- package/testing/matchers/html.d.ts +12 -12
- package/testing/matchers/index.d.ts +23 -23
- package/testing/matchers/screenshot.d.ts +5 -5
- package/testing/matchers/text.d.ts +4 -4
- package/testing/mock-fetch.d.ts +11 -11
- package/testing/mocks.d.ts +56 -56
- package/testing/package.json +1 -1
- package/testing/puppeteer/index.d.ts +2 -2
- package/testing/puppeteer/puppeteer-browser.d.ts +6 -6
- package/testing/puppeteer/puppeteer-declarations.d.ts +403 -403
- package/testing/puppeteer/puppeteer-element.d.ts +67 -67
- package/testing/puppeteer/puppeteer-emulate.d.ts +2 -2
- package/testing/puppeteer/puppeteer-events.d.ts +21 -21
- package/testing/puppeteer/puppeteer-page.d.ts +2 -2
- package/testing/puppeteer/puppeteer-screenshot.d.ts +4 -4
- package/testing/reset-build-conditionals.d.ts +2 -2
- package/testing/spec-page.d.ts +2 -2
- package/testing/test-transpile.d.ts +2 -2
- package/testing/testing-logger.d.ts +25 -25
- package/testing/testing-sys.d.ts +6 -6
- package/testing/testing-utils.d.ts +79 -79
- package/testing/testing.d.ts +2 -2
- package/dependencies.json +0 -120
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type * as d from '@rindo/core/internal';
|
|
2
|
-
export declare function toHaveReceivedEvent(eventSpy: d.EventSpy): {
|
|
3
|
-
message: () => string;
|
|
4
|
-
pass: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare function toHaveReceivedEventTimes(eventSpy: d.EventSpy, count: number): {
|
|
7
|
-
message: () => string;
|
|
8
|
-
pass: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare function toHaveReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any): {
|
|
11
|
-
message: () => string;
|
|
12
|
-
pass: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare function toHaveFirstReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any): {
|
|
15
|
-
message: () => string;
|
|
16
|
-
pass: boolean;
|
|
17
|
-
};
|
|
18
|
-
export declare function toHaveNthReceivedEventDetail(eventSpy: d.EventSpy, index: number, eventDetail: any): {
|
|
19
|
-
message: () => string;
|
|
20
|
-
pass: boolean;
|
|
21
|
-
};
|
|
1
|
+
import type * as d from '@rindo/core/internal';
|
|
2
|
+
export declare function toHaveReceivedEvent(eventSpy: d.EventSpy): {
|
|
3
|
+
message: () => string;
|
|
4
|
+
pass: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function toHaveReceivedEventTimes(eventSpy: d.EventSpy, count: number): {
|
|
7
|
+
message: () => string;
|
|
8
|
+
pass: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function toHaveReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any): {
|
|
11
|
+
message: () => string;
|
|
12
|
+
pass: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function toHaveFirstReceivedEventDetail(eventSpy: d.EventSpy, eventDetail: any): {
|
|
15
|
+
message: () => string;
|
|
16
|
+
pass: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare function toHaveNthReceivedEventDetail(eventSpy: d.EventSpy, index: number, eventDetail: any): {
|
|
19
|
+
message: () => string;
|
|
20
|
+
pass: boolean;
|
|
21
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare function toEqualHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string): {
|
|
2
|
-
message: () => string;
|
|
3
|
-
pass: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare function toEqualLightHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string): {
|
|
6
|
-
message: () => string;
|
|
7
|
-
pass: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function compareHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string, serializeShadowRoot: boolean): {
|
|
10
|
-
message: () => string;
|
|
11
|
-
pass: boolean;
|
|
12
|
-
};
|
|
1
|
+
export declare function toEqualHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string): {
|
|
2
|
+
message: () => string;
|
|
3
|
+
pass: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare function toEqualLightHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string): {
|
|
6
|
+
message: () => string;
|
|
7
|
+
pass: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function compareHtml(input: string | HTMLElement | ShadowRoot, shouldEqual: string, serializeShadowRoot: boolean): {
|
|
10
|
+
message: () => string;
|
|
11
|
+
pass: boolean;
|
|
12
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { toEqualAttribute, toEqualAttributes, toHaveAttribute } from './attributes';
|
|
2
|
-
import { toHaveClass, toHaveClasses, toMatchClasses } from './class-list';
|
|
3
|
-
import { toHaveFirstReceivedEventDetail, toHaveNthReceivedEventDetail, toHaveReceivedEvent, toHaveReceivedEventDetail, toHaveReceivedEventTimes } from './events';
|
|
4
|
-
import { toEqualHtml, toEqualLightHtml } from './html';
|
|
5
|
-
import { toMatchScreenshot } from './screenshot';
|
|
6
|
-
import { toEqualText } from './text';
|
|
7
|
-
export declare const expectExtend: {
|
|
8
|
-
toEqualAttribute: typeof toEqualAttribute;
|
|
9
|
-
toEqualAttributes: typeof toEqualAttributes;
|
|
10
|
-
toEqualHtml: typeof toEqualHtml;
|
|
11
|
-
toEqualLightHtml: typeof toEqualLightHtml;
|
|
12
|
-
toEqualText: typeof toEqualText;
|
|
13
|
-
toHaveAttribute: typeof toHaveAttribute;
|
|
14
|
-
toHaveClass: typeof toHaveClass;
|
|
15
|
-
toHaveClasses: typeof toHaveClasses;
|
|
16
|
-
toMatchClasses: typeof toMatchClasses;
|
|
17
|
-
toHaveReceivedEvent: typeof toHaveReceivedEvent;
|
|
18
|
-
toHaveReceivedEventDetail: typeof toHaveReceivedEventDetail;
|
|
19
|
-
toHaveReceivedEventTimes: typeof toHaveReceivedEventTimes;
|
|
20
|
-
toHaveFirstReceivedEventDetail: typeof toHaveFirstReceivedEventDetail;
|
|
21
|
-
toHaveNthReceivedEventDetail: typeof toHaveNthReceivedEventDetail;
|
|
22
|
-
toMatchScreenshot: typeof toMatchScreenshot;
|
|
23
|
-
};
|
|
1
|
+
import { toEqualAttribute, toEqualAttributes, toHaveAttribute } from './attributes';
|
|
2
|
+
import { toHaveClass, toHaveClasses, toMatchClasses } from './class-list';
|
|
3
|
+
import { toHaveFirstReceivedEventDetail, toHaveNthReceivedEventDetail, toHaveReceivedEvent, toHaveReceivedEventDetail, toHaveReceivedEventTimes } from './events';
|
|
4
|
+
import { toEqualHtml, toEqualLightHtml } from './html';
|
|
5
|
+
import { toMatchScreenshot } from './screenshot';
|
|
6
|
+
import { toEqualText } from './text';
|
|
7
|
+
export declare const expectExtend: {
|
|
8
|
+
toEqualAttribute: typeof toEqualAttribute;
|
|
9
|
+
toEqualAttributes: typeof toEqualAttributes;
|
|
10
|
+
toEqualHtml: typeof toEqualHtml;
|
|
11
|
+
toEqualLightHtml: typeof toEqualLightHtml;
|
|
12
|
+
toEqualText: typeof toEqualText;
|
|
13
|
+
toHaveAttribute: typeof toHaveAttribute;
|
|
14
|
+
toHaveClass: typeof toHaveClass;
|
|
15
|
+
toHaveClasses: typeof toHaveClasses;
|
|
16
|
+
toMatchClasses: typeof toMatchClasses;
|
|
17
|
+
toHaveReceivedEvent: typeof toHaveReceivedEvent;
|
|
18
|
+
toHaveReceivedEventDetail: typeof toHaveReceivedEventDetail;
|
|
19
|
+
toHaveReceivedEventTimes: typeof toHaveReceivedEventTimes;
|
|
20
|
+
toHaveFirstReceivedEventDetail: typeof toHaveFirstReceivedEventDetail;
|
|
21
|
+
toHaveNthReceivedEventDetail: typeof toHaveNthReceivedEventDetail;
|
|
22
|
+
toMatchScreenshot: typeof toMatchScreenshot;
|
|
23
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type * as d from '@rindo/core/internal';
|
|
2
|
-
export declare function toMatchScreenshot(compare: d.ScreenshotDiff, opts?: d.MatchScreenshotOptions): {
|
|
3
|
-
message: () => string;
|
|
4
|
-
pass: boolean;
|
|
5
|
-
};
|
|
1
|
+
import type * as d from '@rindo/core/internal';
|
|
2
|
+
export declare function toMatchScreenshot(compare: d.ScreenshotDiff, opts?: d.MatchScreenshotOptions): {
|
|
3
|
+
message: () => string;
|
|
4
|
+
pass: boolean;
|
|
5
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function toEqualText(input: HTMLElement | string, expectTextContent: string): {
|
|
2
|
-
message: () => string;
|
|
3
|
-
pass: boolean;
|
|
4
|
-
};
|
|
1
|
+
export declare function toEqualText(input: HTMLElement | string, expectTextContent: string): {
|
|
2
|
+
message: () => string;
|
|
3
|
+
pass: boolean;
|
|
4
|
+
};
|
package/testing/mock-fetch.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { MockResponse } from '../mock-doc';
|
|
2
|
-
export declare function setupMockFetch(global: any): void;
|
|
3
|
-
export declare function mockFetchReset(): void;
|
|
4
|
-
export declare const mockFetch: {
|
|
5
|
-
json(data: any, url?: string): void;
|
|
6
|
-
text(data: string, url?: string): void;
|
|
7
|
-
response(rsp: MockResponse, url?: string): void;
|
|
8
|
-
reject(rsp?: MockResponse, url?: string): void;
|
|
9
|
-
reset: typeof mockFetchReset;
|
|
10
|
-
};
|
|
11
|
-
export { MockHeaders, MockRequest, MockRequestInfo, MockRequestInit, MockResponse, MockResponseInit, } from '../mock-doc';
|
|
1
|
+
import { MockResponse } from '../mock-doc';
|
|
2
|
+
export declare function setupMockFetch(global: any): void;
|
|
3
|
+
export declare function mockFetchReset(): void;
|
|
4
|
+
export declare const mockFetch: {
|
|
5
|
+
json(data: any, url?: string): void;
|
|
6
|
+
text(data: string, url?: string): void;
|
|
7
|
+
response(rsp: MockResponse, url?: string): void;
|
|
8
|
+
reject(rsp?: MockResponse, url?: string): void;
|
|
9
|
+
reset: typeof mockFetchReset;
|
|
10
|
+
};
|
|
11
|
+
export { MockHeaders, MockRequest, MockRequestInfo, MockRequestInit, MockResponse, MockResponseInit, } from '../mock-doc';
|
package/testing/mocks.d.ts
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import type { BuildCtx, Cache, CompilerCtx, Config, LoadConfigInit, Module, UnvalidatedConfig, ValidatedConfig } from '@rindo/core/internal';
|
|
2
|
-
import { TestingLogger } from './testing-logger';
|
|
3
|
-
import { TestingSystem } from './testing-sys';
|
|
4
|
-
/**
|
|
5
|
-
* Creates a mock instance of an internal, validated Rindo configuration object
|
|
6
|
-
* the caller
|
|
7
|
-
* @param overrides a partial implementation of `ValidatedConfig`. Any provided fields will override the defaults
|
|
8
|
-
* provided by this function.
|
|
9
|
-
* @returns the mock Rindo configuration
|
|
10
|
-
*/
|
|
11
|
-
export declare function mockValidatedConfig(overrides?: Partial<ValidatedConfig>): ValidatedConfig;
|
|
12
|
-
/**
|
|
13
|
-
* Creates a mock instance of a Rindo configuration entity. The mocked configuration has no guarantees around the
|
|
14
|
-
* types/validity of its data.
|
|
15
|
-
* @param overrides a partial implementation of `UnvalidatedConfig`. Any provided fields will override the defaults
|
|
16
|
-
* provided by this function.
|
|
17
|
-
* @returns the mock Rindo configuration
|
|
18
|
-
*/
|
|
19
|
-
export declare function mockConfig(overrides?: Partial<UnvalidatedConfig>): UnvalidatedConfig;
|
|
20
|
-
/**
|
|
21
|
-
* Creates a configuration object used to bootstrap a Rindo task invocation
|
|
22
|
-
*
|
|
23
|
-
* Several fields are intentionally undefined for this entity. While it would be trivial to stub them out, this mock
|
|
24
|
-
* generation function operates under the assumption that entities like loggers and compiler system abstractions will
|
|
25
|
-
* be shared by multiple entities in a test suite, who should provide those entities to this function
|
|
26
|
-
*
|
|
27
|
-
* @param overrides the properties on the default entity to manually override
|
|
28
|
-
* @returns the default configuration initialization object, with any overrides applied
|
|
29
|
-
*/
|
|
30
|
-
export declare const mockLoadConfigInit: (overrides?: Partial<LoadConfigInit>) => LoadConfigInit;
|
|
31
|
-
export declare function mockCompilerCtx(config?: Config): CompilerCtx;
|
|
32
|
-
export declare function mockBuildCtx(config?: Config, compilerCtx?: CompilerCtx): BuildCtx;
|
|
33
|
-
export declare function mockCache(config?: Config, compilerCtx?: CompilerCtx): Cache;
|
|
34
|
-
export declare function mockLogger(): TestingLogger;
|
|
35
|
-
/**
|
|
36
|
-
* Create a {@link CompilerSystem} entity for testing the compiler.
|
|
37
|
-
*
|
|
38
|
-
* This function acts as a thin wrapper around a {@link TestingSystem} entity creation. It exists to provide a logical
|
|
39
|
-
* place in the codebase where we might expect Rindo engineers to reach for when attempting to mock a
|
|
40
|
-
* {@link CompilerSystem} base type. Should there prove to be usage of both this function and the one it wraps,
|
|
41
|
-
* reconsider if this wrapper is necessary.
|
|
42
|
-
*
|
|
43
|
-
* @returns a System instance for testing purposes.
|
|
44
|
-
*/
|
|
45
|
-
export declare function mockCompilerSystem(): TestingSystem;
|
|
46
|
-
export declare function mockDocument(html?: string): Document;
|
|
47
|
-
export declare function mockWindow(html?: string): Window;
|
|
48
|
-
/**
|
|
49
|
-
* This gives you a mock Module, an interface which is the internal compiler
|
|
50
|
-
* representation of a module. It includes a bunch of information necessary for
|
|
51
|
-
* compilation, this mock basically sets sane defaults for all those values.
|
|
52
|
-
*
|
|
53
|
-
* @param mod is an override module that you can supply to set particular values
|
|
54
|
-
* @returns a module object ready to use in tests!
|
|
55
|
-
*/
|
|
56
|
-
export declare const mockModule: (mod?: Partial<Module>) => Module;
|
|
1
|
+
import type { BuildCtx, Cache, CompilerCtx, Config, LoadConfigInit, Module, UnvalidatedConfig, ValidatedConfig } from '@rindo/core/internal';
|
|
2
|
+
import { TestingLogger } from './testing-logger';
|
|
3
|
+
import { TestingSystem } from './testing-sys';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a mock instance of an internal, validated Rindo configuration object
|
|
6
|
+
* the caller
|
|
7
|
+
* @param overrides a partial implementation of `ValidatedConfig`. Any provided fields will override the defaults
|
|
8
|
+
* provided by this function.
|
|
9
|
+
* @returns the mock Rindo configuration
|
|
10
|
+
*/
|
|
11
|
+
export declare function mockValidatedConfig(overrides?: Partial<ValidatedConfig>): ValidatedConfig;
|
|
12
|
+
/**
|
|
13
|
+
* Creates a mock instance of a Rindo configuration entity. The mocked configuration has no guarantees around the
|
|
14
|
+
* types/validity of its data.
|
|
15
|
+
* @param overrides a partial implementation of `UnvalidatedConfig`. Any provided fields will override the defaults
|
|
16
|
+
* provided by this function.
|
|
17
|
+
* @returns the mock Rindo configuration
|
|
18
|
+
*/
|
|
19
|
+
export declare function mockConfig(overrides?: Partial<UnvalidatedConfig>): UnvalidatedConfig;
|
|
20
|
+
/**
|
|
21
|
+
* Creates a configuration object used to bootstrap a Rindo task invocation
|
|
22
|
+
*
|
|
23
|
+
* Several fields are intentionally undefined for this entity. While it would be trivial to stub them out, this mock
|
|
24
|
+
* generation function operates under the assumption that entities like loggers and compiler system abstractions will
|
|
25
|
+
* be shared by multiple entities in a test suite, who should provide those entities to this function
|
|
26
|
+
*
|
|
27
|
+
* @param overrides the properties on the default entity to manually override
|
|
28
|
+
* @returns the default configuration initialization object, with any overrides applied
|
|
29
|
+
*/
|
|
30
|
+
export declare const mockLoadConfigInit: (overrides?: Partial<LoadConfigInit>) => LoadConfigInit;
|
|
31
|
+
export declare function mockCompilerCtx(config?: Config): CompilerCtx;
|
|
32
|
+
export declare function mockBuildCtx(config?: Config, compilerCtx?: CompilerCtx): BuildCtx;
|
|
33
|
+
export declare function mockCache(config?: Config, compilerCtx?: CompilerCtx): Cache;
|
|
34
|
+
export declare function mockLogger(): TestingLogger;
|
|
35
|
+
/**
|
|
36
|
+
* Create a {@link CompilerSystem} entity for testing the compiler.
|
|
37
|
+
*
|
|
38
|
+
* This function acts as a thin wrapper around a {@link TestingSystem} entity creation. It exists to provide a logical
|
|
39
|
+
* place in the codebase where we might expect Rindo engineers to reach for when attempting to mock a
|
|
40
|
+
* {@link CompilerSystem} base type. Should there prove to be usage of both this function and the one it wraps,
|
|
41
|
+
* reconsider if this wrapper is necessary.
|
|
42
|
+
*
|
|
43
|
+
* @returns a System instance for testing purposes.
|
|
44
|
+
*/
|
|
45
|
+
export declare function mockCompilerSystem(): TestingSystem;
|
|
46
|
+
export declare function mockDocument(html?: string): Document;
|
|
47
|
+
export declare function mockWindow(html?: string): Window;
|
|
48
|
+
/**
|
|
49
|
+
* This gives you a mock Module, an interface which is the internal compiler
|
|
50
|
+
* representation of a module. It includes a bunch of information necessary for
|
|
51
|
+
* compilation, this mock basically sets sane defaults for all those values.
|
|
52
|
+
*
|
|
53
|
+
* @param mod is an override module that you can supply to set particular values
|
|
54
|
+
* @returns a module object ready to use in tests!
|
|
55
|
+
*/
|
|
56
|
+
export declare const mockModule: (mod?: Partial<Module>) => Module;
|
package/testing/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { E2EElement, E2EPage } from './puppeteer-declarations';
|
|
2
|
-
export { newE2EPage } from './puppeteer-page';
|
|
1
|
+
export type { E2EElement, E2EPage } from './puppeteer-declarations';
|
|
2
|
+
export { newE2EPage } from './puppeteer-page';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ValidatedConfig } from '@rindo/core/internal';
|
|
2
|
-
import type * as puppeteer from 'puppeteer';
|
|
3
|
-
export declare function startPuppeteerBrowser(config: ValidatedConfig): Promise<puppeteer.Browser>;
|
|
4
|
-
export declare function connectBrowser(): Promise<any>;
|
|
5
|
-
export declare function disconnectBrowser(browser: puppeteer.Browser): Promise<void>;
|
|
6
|
-
export declare function newBrowserPage(browser: puppeteer.Browser): Promise<puppeteer.Page>;
|
|
1
|
+
import type { ValidatedConfig } from '@rindo/core/internal';
|
|
2
|
+
import type * as puppeteer from 'puppeteer';
|
|
3
|
+
export declare function startPuppeteerBrowser(config: ValidatedConfig): Promise<puppeteer.Browser>;
|
|
4
|
+
export declare function connectBrowser(): Promise<any>;
|
|
5
|
+
export declare function disconnectBrowser(browser: puppeteer.Browser): Promise<void>;
|
|
6
|
+
export declare function newBrowserPage(browser: puppeteer.Browser): Promise<puppeteer.Page>;
|