mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-04-04 14:29:47 +00:00
chore: Update deps
This commit is contained in:
28
lib/node_modules/@deno/shim-deno-test/README.md
generated
vendored
Normal file
28
lib/node_modules/@deno/shim-deno-test/README.md
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# @deno/shim-deno-test
|
||||
|
||||
Subset of [@deno/shim-deno](https://www.npmjs.com/package/@deno/shim-deno) for
|
||||
only `Deno.test`.
|
||||
|
||||
```ts
|
||||
import { Deno, test, testDefinitions } from "@deno/shim-deno-test";
|
||||
|
||||
Deno.test("some test", () => {
|
||||
// test here
|
||||
});
|
||||
|
||||
// or
|
||||
test("some other test", () => {
|
||||
// test here
|
||||
});
|
||||
|
||||
// read from testDefinitions here
|
||||
testDefinitions.length === 2;
|
||||
```
|
||||
|
||||
## Note - Not a Test Runner
|
||||
|
||||
This shim is not a test runner. It simply collects tests into the
|
||||
`testDefinitions` array. The idea is that you run a module that does `Deno.test`
|
||||
calls and then you splice out the test definitions from `testDefinitions` (ex.
|
||||
`const definitions = testDefinitions.splice(0, testDefinitions.length)`) and
|
||||
provide those to a test runner.
|
||||
Reference in New Issue
Block a user