diff --git a/integration_tests/__tests__/__snapshots__/snapshot-serializers-test.js.snap b/integration_tests/__tests__/__snapshots__/snapshot-serializers-test.js.snap index 2a87b6477f19..4acc30034214 100644 --- a/integration_tests/__tests__/__snapshots__/snapshot-serializers-test.js.snap +++ b/integration_tests/__tests__/__snapshots__/snapshot-serializers-test.js.snap @@ -7,8 +7,8 @@ Object { id=\\"foo\\" /> ", - "snapshot serializers works with first plugin 1": "foo: 1", - "snapshot serializers works with nested serializable objects 1": "foo: bar: 2", + "snapshot serializers works with first plugin 1": "foo - 1", + "snapshot serializers works with nested serializable objects 1": "foo - bar - 2", "snapshot serializers works with prepended plugins and default serializers 1": "
", "snapshot serializers works with prepended plugins from expect method called once 1": " @@ -39,6 +39,6 @@ Object { bProp={FOO: 8} /> ", - "snapshot serializers works with second plugin 1": "bar: 2", + "snapshot serializers works with second plugin 1": "bar - 2", } `; diff --git a/integration_tests/__tests__/snapshot-serializers-test.js b/integration_tests/__tests__/snapshot-serializers-test.js index 69db584d7f1c..eea69cd2e89d 100644 --- a/integration_tests/__tests__/snapshot-serializers-test.js +++ b/integration_tests/__tests__/snapshot-serializers-test.js @@ -17,7 +17,7 @@ const snapshotsDir = path.resolve(testDir, '__tests__/__snapshots__'); const snapshotPath = path.resolve(snapshotsDir, 'snapshot-test.js.snap'); const runAndAssert = () => { - const result = runJest.json('snapshot-serializers'); + const result = runJest.json('snapshot-serializers', ['--no-cache']); const json = result.json; expect(json.numTotalTests).toBe(7); expect(json.numPassedTests).toBe(7); diff --git a/integration_tests/snapshot-serializers/package.json b/integration_tests/snapshot-serializers/package.json index 9f215865987a..658160fc0f8e 100644 --- a/integration_tests/snapshot-serializers/package.json +++ b/integration_tests/snapshot-serializers/package.json @@ -1,6 +1,9 @@ { "jest": { "testEnvironment": "node", + "transform": { + "^.+\\.js$": "