@durable-streams/server-conformance-tests 0.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/README.md +132 -0
- package/bin/conformance-dev.mjs +27 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +221 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +3 -0
- package/dist/src-DRIMnUPk.js +2326 -0
- package/dist/test-runner.d.ts +1 -0
- package/dist/test-runner.js +8 -0
- package/package.json +43 -0
- package/src/cli.ts +345 -0
- package/src/index.ts +3596 -0
- package/src/test-runner.ts +19 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test file that runs conformance tests against a server URL
|
|
3
|
+
*
|
|
4
|
+
* The server URL is passed via the CONFORMANCE_TEST_URL environment variable.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { runConformanceTests } from "./index.js"
|
|
8
|
+
|
|
9
|
+
const baseUrl = process.env.CONFORMANCE_TEST_URL
|
|
10
|
+
|
|
11
|
+
if (!baseUrl) {
|
|
12
|
+
throw new Error(
|
|
13
|
+
`CONFORMANCE_TEST_URL environment variable is required. ` +
|
|
14
|
+
`Use the CLI: npx @durable-streams/server-conformance-tests --run <url>`
|
|
15
|
+
)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Run the conformance tests against the configured server
|
|
19
|
+
runConformanceTests({ baseUrl })
|