Skip to content

Commit 4a8859d

Browse files
committed
chore: update docs
1 parent ab74f0d commit 4a8859d

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

readme.md

+5-12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
> A minimal Jest like snapshot testing helper for node:test
44
5+
> [!NOTE]
6+
>
7+
> This library is now ESM ONLY (since v1.0.0), use v0 if you wish to stick to
8+
> CJS
9+
510
> [!NOTE]
611
> The Library is under active development and might have bugs and issues, please
712
> report them at
@@ -22,18 +27,6 @@
2227
### Usage
2328

2429
```js
25-
// CJS
26-
const { test } = require('node:test')
27-
const { snapshot } = require('@barelyhuman/node-snapshot')
28-
29-
test('foo', t => {
30-
snapshot(t, 'bar')
31-
32-
t.test('foo bar', t => {
33-
snapshot(t, [{ foo: 'bar' }])
34-
})
35-
})
36-
3730
// ESM
3831
import { test } from 'node:test'
3932
import { snapshot } from '@barelyhuman/node-snapshot'

0 commit comments

Comments
 (0)