mirror of https://github.com/nodejs/node.git
12 lines
320 B
JavaScript
12 lines
320 B
JavaScript
'use strict';
|
|
const { snapshot, test } = require('node:test');
|
|
const { basename, join } = require('node:path');
|
|
|
|
snapshot.setResolveSnapshotPath((testFile) => {
|
|
return join(process.cwd(), `${basename(testFile)}.snapshot`);
|
|
});
|
|
|
|
test('has a snapshot', (t) => {
|
|
t.assert.snapshot('a snapshot from ' + __filename);
|
|
});
|