@ripplo/testing 0.0.9 → 0.0.11
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/dist/{builder-DTWMrbuv.d.ts → builder-1kySbit_.d.ts} +5 -1
- package/dist/{chunk-KWUKVAGI.js → chunk-7ETQVVAA.js} +24 -0
- package/dist/compiler.d.ts +1 -1
- package/dist/express.d.ts +1 -1
- package/dist/express.js +1 -1
- package/dist/fastify.d.ts +1 -1
- package/dist/fastify.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -1
- package/dist/lockfile.d.ts +1 -1
- package/dist/nextjs.d.ts +1 -1
- package/dist/nextjs.js +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { S as Step } from './step-DLfkKI3V.js';
|
|
3
3
|
|
|
4
|
+
declare const DEFAULT_WATCH_PATHS: ReadonlyArray<string>;
|
|
5
|
+
declare const DEFAULT_IGNORE_PATHS: ReadonlyArray<string>;
|
|
4
6
|
declare const dslConfigSchema: z.ZodObject<{
|
|
5
7
|
appUrl: z.ZodString;
|
|
8
|
+
ignorePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
9
|
preconditionsUrl: z.ZodString;
|
|
7
10
|
projectId: z.ZodString;
|
|
11
|
+
watchPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
12
|
webhookSecret: z.ZodString;
|
|
9
13
|
}, z.core.$strip>;
|
|
10
14
|
type DslConfig = z.infer<typeof dslConfigSchema>;
|
|
@@ -130,4 +134,4 @@ interface RipploBuilder {
|
|
|
130
134
|
}
|
|
131
135
|
declare function createRipplo(rawConfig: DslConfig): RipploBuilder;
|
|
132
136
|
|
|
133
|
-
export { type CookieEntry as C,
|
|
137
|
+
export { type CookieEntry as C, DEFAULT_IGNORE_PATHS as D, type Precondition as P, type RipploBuilder as R, type SetupContext as S, type TeardownContext as T, type CookieOptions as a, DEFAULT_WATCH_PATHS as b, type DslConfig as c, type PreconditionDeps as d, type PreconditionImpl as e, type PreconditionRecord as f, type ResolveDeps as g, createRipplo as h };
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
// src/types.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
var DEFAULT_WATCH_PATHS = [
|
|
4
|
+
"src/**",
|
|
5
|
+
"app/**",
|
|
6
|
+
"apps/**",
|
|
7
|
+
"pages/**",
|
|
8
|
+
"routes/**",
|
|
9
|
+
"components/**"
|
|
10
|
+
];
|
|
11
|
+
var DEFAULT_IGNORE_PATHS = [
|
|
12
|
+
"**/*.gen.*",
|
|
13
|
+
"**/generated/**",
|
|
14
|
+
"**/*.d.ts",
|
|
15
|
+
"**/*.test.*",
|
|
16
|
+
"**/*.spec.*",
|
|
17
|
+
"**/node_modules/**",
|
|
18
|
+
"**/dist/**",
|
|
19
|
+
"**/build/**",
|
|
20
|
+
".ripplo/**",
|
|
21
|
+
"**/*.md"
|
|
22
|
+
];
|
|
3
23
|
var dslConfigSchema = z.object({
|
|
4
24
|
appUrl: z.string(),
|
|
25
|
+
ignorePaths: z.array(z.string()).optional(),
|
|
5
26
|
preconditionsUrl: z.string(),
|
|
6
27
|
projectId: z.string(),
|
|
28
|
+
watchPaths: z.array(z.string()).optional(),
|
|
7
29
|
webhookSecret: z.string()
|
|
8
30
|
});
|
|
9
31
|
function readTestValue(value) {
|
|
@@ -216,6 +238,8 @@ function buildSetCookieHeader(cookie) {
|
|
|
216
238
|
}
|
|
217
239
|
|
|
218
240
|
export {
|
|
241
|
+
DEFAULT_WATCH_PATHS,
|
|
242
|
+
DEFAULT_IGNORE_PATHS,
|
|
219
243
|
dslConfigSchema,
|
|
220
244
|
readPreconditionName,
|
|
221
245
|
createEngine,
|
package/dist/compiler.d.ts
CHANGED
package/dist/express.d.ts
CHANGED
package/dist/express.js
CHANGED
package/dist/fastify.d.ts
CHANGED
package/dist/fastify.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CookieEntry, R as RipploBuilder } from './builder-
|
|
2
|
-
export { a as CookieOptions, D as DslConfig, P as Precondition,
|
|
1
|
+
import { C as CookieEntry, R as RipploBuilder } from './builder-1kySbit_.js';
|
|
2
|
+
export { a as CookieOptions, D as DEFAULT_IGNORE_PATHS, b as DEFAULT_WATCH_PATHS, c as DslConfig, P as Precondition, d as PreconditionDeps, e as PreconditionImpl, f as PreconditionRecord, g as ResolveDeps, S as SetupContext, T as TeardownContext, h as createRipplo } from './builder-1kySbit_.js';
|
|
3
3
|
import { CompileResult } from './compiler.js';
|
|
4
4
|
export { CompiledTest, compile } from './compiler.js';
|
|
5
5
|
export { D as DslNodeInput } from './step-DLfkKI3V.js';
|
package/dist/index.js
CHANGED
|
@@ -3,13 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-LEIKZ6BE.js";
|
|
4
4
|
import "./chunk-MGATMMCZ.js";
|
|
5
5
|
import {
|
|
6
|
+
DEFAULT_IGNORE_PATHS,
|
|
7
|
+
DEFAULT_WATCH_PATHS,
|
|
6
8
|
buildSetCookieHeader,
|
|
7
9
|
createEngine,
|
|
8
10
|
dslConfigSchema,
|
|
9
11
|
readPreconditionName,
|
|
10
12
|
serializeCookie,
|
|
11
13
|
verifyWebhookSignature
|
|
12
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7ETQVVAA.js";
|
|
13
15
|
|
|
14
16
|
// src/builder.ts
|
|
15
17
|
function createRipplo(rawConfig) {
|
|
@@ -637,6 +639,8 @@ var RULES = [
|
|
|
637
639
|
expectedOutcomeKeywordCoverage
|
|
638
640
|
];
|
|
639
641
|
export {
|
|
642
|
+
DEFAULT_IGNORE_PATHS,
|
|
643
|
+
DEFAULT_WATCH_PATHS,
|
|
640
644
|
buildSetCookieHeader,
|
|
641
645
|
compile,
|
|
642
646
|
createEngine,
|
package/dist/lockfile.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Codec } from '@ripplo/spec';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { CompileResult } from './compiler.js';
|
|
4
|
-
import './builder-
|
|
4
|
+
import './builder-1kySbit_.js';
|
|
5
5
|
import './step-DLfkKI3V.js';
|
|
6
6
|
|
|
7
7
|
declare const LOCKFILE_RELATIVE_PATH = ".ripplo/ripplo.lock";
|
package/dist/nextjs.d.ts
CHANGED
package/dist/nextjs.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ripplo/testing",
|
|
3
3
|
"description": "TypeScript DSL for defining and running Ripplo e2e workflow tests",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"tsup": "^8.5.1",
|
|
72
72
|
"typescript": "catalog:",
|
|
73
73
|
"vitest": "^4.1.4",
|
|
74
|
-
"@ripplo/
|
|
75
|
-
"@ripplo/
|
|
74
|
+
"@ripplo/spec": "^0.0.0",
|
|
75
|
+
"@ripplo/eslint-config": "0.0.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"dotenv": "^16.0.0 || ^17.0.0",
|