@plugjs/expect5 0.4.14 → 0.4.16
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/cli.mjs +1 -1
- package/dist/execution/executable.cjs +2 -2
- package/dist/execution/executable.cjs.map +1 -1
- package/dist/execution/executable.mjs +2 -2
- package/dist/execution/executable.mjs.map +1 -1
- package/dist/execution/executor.cjs.map +1 -1
- package/dist/execution/executor.mjs.map +1 -1
- package/dist/execution/setup.cjs.map +1 -1
- package/dist/execution/setup.d.ts +1 -1
- package/dist/execution/setup.mjs.map +1 -1
- package/dist/expectation/async.cjs.map +1 -1
- package/dist/expectation/async.d.ts +3 -2
- package/dist/expectation/async.mjs +1 -3
- package/dist/expectation/async.mjs.map +1 -1
- package/dist/expectation/diff.cjs.map +1 -1
- package/dist/expectation/diff.mjs.map +1 -1
- package/dist/expectation/expectations.cjs +3 -4
- package/dist/expectation/expectations.cjs.map +1 -1
- package/dist/expectation/expectations.d.ts +3 -3
- package/dist/expectation/expectations.mjs +3 -4
- package/dist/expectation/expectations.mjs.map +1 -1
- package/dist/expectation/include.cjs +0 -1
- package/dist/expectation/include.cjs.map +1 -1
- package/dist/expectation/include.d.ts +1 -1
- package/dist/expectation/include.mjs +0 -1
- package/dist/expectation/include.mjs.map +1 -1
- package/dist/expectation/matchers.cjs +2 -2
- package/dist/expectation/matchers.cjs.map +1 -1
- package/dist/expectation/matchers.d.ts +3 -2
- package/dist/expectation/matchers.mjs +4 -8
- package/dist/expectation/matchers.mjs.map +1 -1
- package/dist/expectation/print.cjs +0 -1
- package/dist/expectation/print.cjs.map +1 -1
- package/dist/expectation/print.d.ts +2 -2
- package/dist/expectation/print.mjs +0 -1
- package/dist/expectation/print.mjs.map +1 -1
- package/dist/expectation/types.cjs +0 -3
- package/dist/expectation/types.cjs.map +1 -1
- package/dist/expectation/types.d.ts +3 -3
- package/dist/expectation/types.mjs +0 -3
- package/dist/expectation/types.mjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/test.cjs +0 -3
- package/dist/test.cjs.map +1 -1
- package/dist/test.d.ts +2 -2
- package/dist/test.mjs +0 -3
- package/dist/test.mjs.map +1 -1
- package/package.json +2 -2
- package/src/execution/executor.ts +3 -1
- package/src/execution/setup.ts +3 -1
- package/src/expectation/async.ts +9 -8
- package/src/expectation/diff.ts +2 -1
- package/src/expectation/expectations.ts +9 -5
- package/src/expectation/include.ts +4 -2
- package/src/expectation/matchers.ts +13 -13
- package/src/expectation/print.ts +10 -8
- package/src/expectation/types.ts +3 -3
- package/src/index.ts +3 -1
- package/src/test.ts +5 -4
package/src/test.ts
CHANGED
|
@@ -6,9 +6,7 @@ import { AssertionError } from 'node:assert'
|
|
|
6
6
|
import { BuildFailure } from '@plugjs/plug'
|
|
7
7
|
import { assert } from '@plugjs/plug/asserts'
|
|
8
8
|
import { dirnameFromUrl, filenameFromUrl } from '@plugjs/plug/paths'
|
|
9
|
-
import {
|
|
10
|
-
import { $blu, $grn, $gry, $ms, $red, $wht, $ylw, ERROR, NOTICE, WARN, log, type Logger, $p, githubAnnotation } from '@plugjs/plug/logging'
|
|
11
|
-
import { type Context, type PipeParameters, type Plug } from '@plugjs/plug/pipe'
|
|
9
|
+
import { $blu, $grn, $gry, $ms, $red, $wht, $ylw, ERROR, NOTICE, WARN, log, $p, githubAnnotation } from '@plugjs/plug/logging'
|
|
12
10
|
|
|
13
11
|
import * as setup from './execution/setup'
|
|
14
12
|
import { Suite, skip } from './execution/executable'
|
|
@@ -18,7 +16,10 @@ import { expect } from './expectation/expect'
|
|
|
18
16
|
import { printDiff } from './expectation/print'
|
|
19
17
|
import { ExpectationError, stringifyValue } from './expectation/types'
|
|
20
18
|
|
|
21
|
-
import {
|
|
19
|
+
import type { TestOptions } from './index'
|
|
20
|
+
import type { Context, PipeParameters, Plug } from '@plugjs/plug/pipe'
|
|
21
|
+
import type { Files } from '@plugjs/plug/files'
|
|
22
|
+
import type { Logger } from '@plugjs/plug/logging'
|
|
22
23
|
|
|
23
24
|
const _pending = '\u22EF' // middle ellipsis
|
|
24
25
|
const _success = '\u2714' // heavy check mark
|