@sureq/store-test 1.0.0 → 1.0.2

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @sureq/store-test
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/@sureq/store-test.svg)](https://www.npmjs.com/package/@sureq/store-test)
4
+ [![CI](https://github.com/sureq-js/sureq/actions/workflows/ci.yml/badge.svg)](https://github.com/sureq-js/sureq/actions/workflows/ci.yml)
5
+ [![license](https://img.shields.io/npm/l/@sureq/store-test.svg)](LICENSE)
6
+ [![node](https://img.shields.io/node/v/@sureq/store-test.svg)](https://www.npmjs.com/package/@sureq/store-test)
7
+ [![security policy](https://img.shields.io/badge/security-policy-blue.svg)](https://github.com/sureq-js/sureq/blob/main/SECURITY.md)
8
+ [![Known Vulnerabilities](https://snyk.io/test/npm/@sureq/store-test/badge.svg)](https://snyk.io/test/npm/@sureq/store-test)
9
+ [![docs](https://img.shields.io/badge/docs-sureq--js.github.io-blue.svg)](https://sureq-js.github.io/sureq/)
10
+
3
11
  Conformance suite for SureQ stores. It checks a store against the store contract: claims, leases, fencing
4
12
  tokens, sweeping, release, cancel, pause, the store clock, and the duplicate rules (unique ids, singleton keys,
5
13
  `seq` for idempotency keys, revision-checked writes for merges). A store that passes it is safe to put under a
package/dist/index.cjs CHANGED
@@ -8346,7 +8346,7 @@ async function withTimeout(p, ms, title) {
8346
8346
  /** The runner whose globals are present: Jest, Vitest (with globals) or node:test. */
8347
8347
  function detectRunner() {
8348
8348
  const g = globalThis;
8349
- if (g["jest"] !== void 0 || process.env["VITEST"] && typeof g["describe"] === "function") return {
8349
+ if ((Boolean(process.env["JEST_WORKER_ID"]) || g["jest"] !== void 0 || process.env["VITEST"]) && typeof g["describe"] === "function") return {
8350
8350
  describe: (name, fn) => g["describe"](name, fn),
8351
8351
  it: (name, fn) => g["it"](name, fn),
8352
8352
  before: (fn) => g["beforeAll"](fn),