@@ -15,7 +15,7 @@ const {
15
15
ERR_INVALID_STATE ,
16
16
} ,
17
17
} = require ( 'internal/errors' ) ;
18
- const { emitExperimentalWarning , kEmptyObject } = require ( 'internal/util' ) ;
18
+ const { kEmptyObject } = require ( 'internal/util' ) ;
19
19
let debug = require ( 'internal/util/debuglog' ) . debuglog ( 'test_runner' , ( fn ) => {
20
20
debug = fn ;
21
21
} ) ;
@@ -28,7 +28,6 @@ const { strictEqual } = require('assert');
28
28
const { mkdirSync, readFileSync, writeFileSync } = require ( 'fs' ) ;
29
29
const { dirname } = require ( 'path' ) ;
30
30
const { createContext, runInContext } = require ( 'vm' ) ;
31
- const kExperimentalWarning = 'Snapshot testing' ;
32
31
const kMissingSnapshotTip = 'Missing snapshots can be generated by rerunning ' +
33
32
'the command with the --test-update-snapshots flag.' ;
34
33
const defaultSerializers = [
@@ -47,13 +46,11 @@ let resolveSnapshotPathFn = defaultResolveSnapshotPath;
47
46
let serializerFns = defaultSerializers ;
48
47
49
48
function setResolveSnapshotPath ( fn ) {
50
- emitExperimentalWarning ( kExperimentalWarning ) ;
51
49
validateFunction ( fn , 'fn' ) ;
52
50
resolveSnapshotPathFn = fn ;
53
51
}
54
52
55
53
function setDefaultSnapshotSerializers ( serializers ) {
56
- emitExperimentalWarning ( kExperimentalWarning ) ;
57
54
validateFunctionArray ( serializers , 'serializers' ) ;
58
55
serializerFns = ArrayPrototypeSlice ( serializers ) ;
59
56
}
@@ -207,7 +204,6 @@ class SnapshotManager {
207
204
const manager = this ;
208
205
209
206
return function snapshotAssertion ( actual , options = kEmptyObject ) {
210
- emitExperimentalWarning ( kExperimentalWarning ) ;
211
207
validateObject ( options , 'options' ) ;
212
208
const {
213
209
serializers = serializerFns ,
0 commit comments