diff --git a/packages/gatsby-transformer-csv/src/__tests__/__snapshots__/gatsby-node.js.snap b/packages/gatsby-transformer-csv/src/__tests__/__snapshots__/gatsby-node.js.snap index 876a82914a97d..14f2b875a35e2 100644 --- a/packages/gatsby-transformer-csv/src/__tests__/__snapshots__/gatsby-node.js.snap +++ b/packages/gatsby-transformer-csv/src/__tests__/__snapshots__/gatsby-node.js.snap @@ -9,7 +9,7 @@ Array [ "funny": "yup", "id": "uuid-from-gatsby", "internal": Object { - "contentDigest": "contentDigest", + "contentDigest": "5005aee6b2557974cae0aabc712e125a", "type": "TestCsv", }, "parent": "whatever", @@ -22,7 +22,7 @@ Array [ "funny": "nope", "id": "uuid-from-gatsby", "internal": Object { - "contentDigest": "contentDigest", + "contentDigest": "0af87da7e572c2d6d8493bcd642c2c78", "type": "TestCsv", }, "parent": "whatever", @@ -41,7 +41,7 @@ Array [ "funny": "yup", "id": "uuid-from-gatsby", "internal": Object { - "contentDigest": "contentDigest", + "contentDigest": "5005aee6b2557974cae0aabc712e125a", "type": "TestCsv", }, "parent": "whatever", @@ -70,7 +70,7 @@ false,\\"nope\\"", "funny": "nope", "id": "uuid-from-gatsby", "internal": Object { - "contentDigest": "contentDigest", + "contentDigest": "0af87da7e572c2d6d8493bcd642c2c78", "type": "TestCsv", }, "parent": "whatever", @@ -103,7 +103,7 @@ Array [ "field2": "funny", "id": "uuid-from-gatsby", "internal": Object { - "contentDigest": "contentDigest", + "contentDigest": "49605f5e32a2250d7ca740c5d2e79784", "type": "TestCsv", }, "parent": "whatever", @@ -116,7 +116,7 @@ Array [ "field2": "yup", "id": "uuid-from-gatsby", "internal": Object { - "contentDigest": "contentDigest", + "contentDigest": "2bf0bc0e8539ef5f6bbcf67c8b733233", "type": "TestCsv", }, "parent": "whatever", @@ -129,7 +129,7 @@ Array [ "field2": "nope", "id": "uuid-from-gatsby", "internal": Object { - "contentDigest": "contentDigest", + "contentDigest": "f5f617ce4243d639de924543dec5600e", "type": "TestCsv", }, "parent": "whatever", @@ -148,7 +148,7 @@ Array [ "field2": "funny", "id": "uuid-from-gatsby", "internal": Object { - "contentDigest": "contentDigest", + "contentDigest": "49605f5e32a2250d7ca740c5d2e79784", "type": "TestCsv", }, "parent": "whatever", @@ -177,7 +177,7 @@ false,nope", "field2": "yup", "id": "uuid-from-gatsby", "internal": Object { - "contentDigest": "contentDigest", + "contentDigest": "2bf0bc0e8539ef5f6bbcf67c8b733233", "type": "TestCsv", }, "parent": "whatever", @@ -206,7 +206,7 @@ false,nope", "field2": "nope", "id": "uuid-from-gatsby", "internal": Object { - "contentDigest": "contentDigest", + "contentDigest": "f5f617ce4243d639de924543dec5600e", "type": "TestCsv", }, "parent": "whatever", diff --git a/packages/gatsby-transformer-csv/src/__tests__/gatsby-node.js b/packages/gatsby-transformer-csv/src/__tests__/gatsby-node.js index 5cf7bd33dbfac..865dc15e32b5c 100644 --- a/packages/gatsby-transformer-csv/src/__tests__/gatsby-node.js +++ b/packages/gatsby-transformer-csv/src/__tests__/gatsby-node.js @@ -1,6 +1,7 @@ const Promise = require(`bluebird`) const json2csv = require(`json2csv`) +const createContentDigest = require(`../../../gatsby/src/utils/create-content-digest`) const { onCreateNode } = require(`../gatsby-node`) describe(`Process nodes correctly`, () => { @@ -30,7 +31,6 @@ describe(`Process nodes correctly`, () => { const actions = { createNode, createParentChildLink } const createNodeId = jest.fn() createNodeId.mockReturnValue(`uuid-from-gatsby`) - const createContentDigest = jest.fn().mockReturnValue(`contentDigest`) await onCreateNode({ node, @@ -54,7 +54,6 @@ describe(`Process nodes correctly`, () => { const actions = { createNode, createParentChildLink } const createNodeId = jest.fn() createNodeId.mockReturnValue(`uuid-from-gatsby`) - const createContentDigest = jest.fn().mockReturnValue(`contentDigest`) await onCreateNode( {