Skip to content

Commit

Permalink
test: update atomic snap (#1077)
Browse files Browse the repository at this point in the history
<!-- For Coveo Employees only. Fill this section.

CDX-764

-->

## Proposed changes

Update the snap, steal the fix from #1074
  • Loading branch information
louis-bompart authored Jan 11, 2023
1 parent cbcd2ae commit f044da2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 187 deletions.
189 changes: 12 additions & 177 deletions packages/cli-e2e/__tests__/__snapshots__/atomic.specs.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ HashedFolder {
HashedFolder {
"children": [
HashedFile {
"hash": "YY+tyg0Mw+JNjYdifQfLqfDUASQ=",
"hash": "yYnkMNFHBU75Q1vjLZNnBzeTT94=",
"name": "results-manager.tsx",
},
HashedFile {
"hash": "XRPU8q6nh23adL66sq+HEqg+lCY=",
"hash": "QmpidZewzj5B6dpIahLJ7SgHRYg=",
"name": "template-1.html",
},
],
"hash": "jh83V2cKEQIWFje8KVLl+s96OXA=",
"hash": "MhsnUowMHXMKTVw7vJkMusd/TI0=",
"name": "results-manager",
},
HashedFolder {
Expand Down Expand Up @@ -117,172 +117,7 @@ HashedFolder {
"name": "sample-result-component",
},
],
"hash": "fzMFT63mCvo5uu2exrKKhI2gGM8=",
"name": "components",
},
HashedFile {
"hash": "B8YfCYuao2stXw64J6gW1TONNVg=",
"name": "components.d.ts",
},
HashedFile {
"hash": "/MC1IvlmPW0zAgfo82n8CnBDMrA=",
"name": "html.d.ts",
},
HashedFile {
"hash": "hlBUDBUrW6Vub74g68bUqfs3OIM=",
"name": "index.ts",
},
HashedFolder {
"children": [],
"hash": "2jmj7l5rSw0yVb/vlWAYkK/YBwk=",
"name": "pages",
},
HashedFolder {
"children": [
HashedFile {
"hash": "61GVF7l8bCVXW00H2rtInTKwoqY=",
"name": "index.css",
},
],
"hash": "FQZ6fv/Z/8DhwZWuUbrLwgTt6r8=",
"name": "style",
},
],
"hash": "MyBnsgmKg3qrQRu4sQZ7FfT7jgQ=",
"name": "src",
},
HashedFile {
"hash": "jVuOZ6BrKT9HUer88GsGfeySq/w=",
"name": "start-netlify.mjs",
},
HashedFile {
"hash": "XiXrxQ8C2vt88gPhq3hGtPIJ5Yg=",
"name": "tsconfig.json",
},
],
"hash": "3hfx19GW+7poeUXP9QQZn5h9nn0=",
"name": "normalizedDir",
}
`;

exports[`ui:create:atomic when using an existing pageId (pageId not specified) the project has been generated properly 1`] = `
HashedFolder {
"children": [
HashedFolder {
"children": [
HashedFolder {
"children": [
HashedFolder {
"children": [
HashedFile {
"hash": "svywi4m+5JDQ38UPkngnE1Mjtdo=",
"name": "areEnvironmentVariablesSet.ts",
},
HashedFile {
"hash": "qJrXPWX6cL4N+TMvhr6+n05vNwk=",
"name": "generateToken.ts",
},
HashedFile {
"hash": "AG8M1wAglfYRRL/+Y987D25+YcA=",
"name": "token.spec.ts",
},
HashedFile {
"hash": "LxpAYAmM+yDe4mLtd3Rj6R9S30k=",
"name": "token.ts",
},
],
"hash": "qIYVWdq8oh9lCcu0H1X5XfQchcU=",
"name": "token",
},
],
"hash": "sBgXQK+6u5b7XzuUi8zQquqUtaU=",
"name": "functions",
},
HashedFile {
"hash": "qBh2kK6C/tcpIA4kKT8j7bm10Kw=",
"name": "jest.config.js",
},
HashedFile {
"hash": "Q5B4b7qfWLJaHE/TZpt/2vLRgUk=",
"name": "LICENSE",
},
HashedFile {
"hash": "3RItgq2aQ177ZrvBxVNrLLaaRLc=",
"name": "netlify.toml",
},
HashedFile {
"hash": "JcgnYZDTiQ6EqMwKIuEh9x+kLlA=",
"name": "README.md",
},
HashedFile {
"hash": "RmeGeAs5hovLIHxguToYky0yJDY=",
"name": "tsconfig.json",
},
],
"hash": "MVuHWG3A8rTxFYXfcqRQA/UkK7s=",
"name": "lambda",
},
HashedFile {
"hash": "RH58BiYWbvwHsjuAvGykfQPEhA0=",
"name": "netlify.toml",
},
HashedFile {
"hash": "sHQjSgNkkzGDXBmN+aw/aMx7O1g=",
"name": "README.md",
},
HashedFolder {
"children": [],
"hash": "2jmj7l5rSw0yVb/vlWAYkK/YBwk=",
"name": "scripts",
},
HashedFolder {
"children": [
HashedFolder {
"children": [
HashedFolder {
"children": [
HashedFile {
"hash": "YY+tyg0Mw+JNjYdifQfLqfDUASQ=",
"name": "results-manager.tsx",
},
HashedFile {
"hash": "XRPU8q6nh23adL66sq+HEqg+lCY=",
"name": "template-1.html",
},
],
"hash": "jh83V2cKEQIWFje8KVLl+s96OXA=",
"name": "results-manager",
},
HashedFolder {
"children": [
HashedFile {
"hash": "XemX7AoOihA4SgQsvWtcStjeiGo=",
"name": "sample-component.css",
},
HashedFile {
"hash": "Hc10iNLZdetWJmslIN073kcgqIo=",
"name": "sample-component.tsx",
},
],
"hash": "a6roJ6GZ6LokDTmBQ+gUBFvibHw=",
"name": "sample-component",
},
HashedFolder {
"children": [
HashedFile {
"hash": "0kZk+nhPZP6DNXEt1ds/y13pPn4=",
"name": "sample-result-component.css",
},
HashedFile {
"hash": "t5lGbTWEHgY4Bp2hhfFGNxq0bXU=",
"name": "sample-result-component.tsx",
},
],
"hash": "KiAmaY02cMdCGTIWhsuqogs7zKk=",
"name": "sample-result-component",
},
],
"hash": "fzMFT63mCvo5uu2exrKKhI2gGM8=",
"hash": "GINvDhy6JkDUmb96DTHjFh/Pbno=",
"name": "components",
},
HashedFile {
Expand Down Expand Up @@ -313,7 +148,7 @@ HashedFolder {
"name": "style",
},
],
"hash": "fTp/vtQ1keqpa0vWOA+VJlSEaFk=",
"hash": "xfEmWBhapmmvdfWfbIL7zTYrmlE=",
"name": "src",
},
HashedFile {
Expand All @@ -325,7 +160,7 @@ HashedFolder {
"name": "tsconfig.json",
},
],
"hash": "qiQpjO78qNq7c1hobjxhbaa2vSY=",
"hash": "oBxgPkKn9fhB+CiZRIKoNW7PYO0=",
"name": "normalizedDir",
}
`;
Expand Down Expand Up @@ -366,15 +201,15 @@ HashedFolder {
HashedFolder {
"children": [
HashedFile {
"hash": "ErdFGgbxq+C0LOYeQvVh59O3JYA=",
"hash": "825kP1s1AjeW6LxFVkzMpo89ocw=",
"name": "results-manager.tsx",
},
HashedFile {
"hash": "Xff4jn7lIoJUUtjDjOH+FACRciM=",
"hash": "HSqagzHtY3dAr+XN0lW0CBZjNC8=",
"name": "template-1.html",
},
],
"hash": "gcA5JEvFE0rPliUetRfIoo2EP+Q=",
"hash": "q/lRj2tA0uiP5qSDzwetWalpV04=",
"name": "results-manager",
},
HashedFolder {
Expand Down Expand Up @@ -406,7 +241,7 @@ HashedFolder {
"name": "sample-result-component",
},
],
"hash": "sKU3WMjer0bAf7UtOHeZHkBNEmE=",
"hash": "E5EvuX7RNVpuDWUwcAtnrGEer9Q=",
"name": "components",
},
HashedFile {
Expand Down Expand Up @@ -437,7 +272,7 @@ HashedFolder {
"name": "style",
},
],
"hash": "UGvI/Ocq3aNPnCaBRFDOYKyXFAA=",
"hash": "1qth3tKRzzPWAg+e5OnlCPs4n/8=",
"name": "src",
},
HashedFile {
Expand All @@ -449,7 +284,7 @@ HashedFolder {
"name": "tsconfig.json",
},
],
"hash": "dbqs7z5LOY5afIpuK0dN+snFmkk=",
"hash": "j3JNELMUV+SlhXs9pPnlO/+Gkmo=",
"name": "normalizedDir",
}
`;
Expand Down
11 changes: 1 addition & 10 deletions packages/cli-e2e/__tests__/atomic.specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ describe('ui:create:atomic', () => {

describe.each([
{
describeName: 'when using an existing pageId (pageId not specified)',
describeName: 'when using an existing pageId (--pageId flag specified)',
buildAppOptions: {
id: 'with-page-id',
pageId: 'fffaafcc-6863-46cb-aca3-97522fcc0f5d',
Expand All @@ -169,15 +169,6 @@ describe('ui:create:atomic', () => {
buildAppOptions: {id: 'without-page-id', skipInstall: true},
skipBrowser: true,
},
{
describeName: 'when using an existing pageId (--pageId flag specified)',
buildAppOptions: {
id: 'with-page-id',
pageId: 'fffaafcc-6863-46cb-aca3-97522fcc0f5d',
skipInstall: true,
},
skipBrowser: true,
},
{
describeName:
'when using an existing pageId (using the list prompt of available pages)',
Expand Down

0 comments on commit f044da2

Please sign in to comment.