Skip to content

Commit

Permalink
Show commonjs usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mlrawlings authored Nov 13, 2019
1 parent ae552b5 commit fb33dd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ type SnapshotOptions = {

```javascript
import runSnapshotTests from "@marko/fixture-snapshots/jest";
// const runSnapshotTests = require("@marko/fixture-snapshots/jest").default;

describe("fixture snapshots", () => {
runSnapshotTests(__dirname);
Expand All @@ -95,7 +96,8 @@ describe("fixture snapshots", () => {
#### Usage with Mocha

```javascript
import runSnapshotTests from "@marko/fixture-snapshots/mocha";
import runSnapshotTests from "@marko/fixture-snapshots/mocha";
// const runSnapshotTests = require("@marko/fixture-snapshots/mocha").default;

describe("fixture snapshots", () => {
runSnapshotTests(__dirname);
Expand Down

0 comments on commit fb33dd8

Please sign in to comment.