Skip to content

Commit

Permalink
chore: add japa snapshot plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Jun 2, 2024
1 parent d06e72b commit 1126e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

import { assert } from '@japa/assert'
import { snapshot } from '@japa/snapshot'
import { fileSystem } from '@japa/file-system'
import { processCLIArgs, configure, run } from '@japa/runner'

Expand All @@ -29,7 +30,7 @@ import { BASE_URL } from '../tests_helpers/index.js'
processCLIArgs(process.argv.slice(2))
configure({
files: ['tests/**/*.spec.ts'],
plugins: [assert(), fileSystem({ basePath: BASE_URL })],
plugins: [assert(), fileSystem({ basePath: BASE_URL }), snapshot()],
})

/*
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"@japa/assert": "2.1.0",
"@japa/file-system": "^2.2.0",
"@japa/runner": "3.1.1",
"@japa/snapshot": "^2.0.4",
"@swc/core": "^1.4.2",
"@types/node": "^20.11.20",
"c8": "^9.1.0",
Expand Down

0 comments on commit 1126e0f

Please sign in to comment.