Skip to content

Commit 1611157

Browse files
committed
test(compiler): update test snapshots
1 parent bfcc5d8 commit 1611157

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

packages/compiler/src/compiler/__snapshots__/compiler.spec.ts.snap

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/
1212
"scopeId": "scopeId_1",
1313
"chunkId": "chunkId_1"
1414
}
15-
}} loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)}><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></_ReplexicaServerProxy>
15+
}} loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)}><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></_ReplexicaServerProxy>
1616
</div>;"
1717
`;
1818
@@ -21,7 +21,7 @@ exports[`Compiles content > jsx assigned to jsx attribute 1`] = `
2121
import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
2222
import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
2323
<div>
24-
<div data-test={<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_1" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></span>}><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></div>
24+
<div data-test={<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_1" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></span>}><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></div>
2525
</div>;"
2626
`;
2727
@@ -30,8 +30,8 @@ exports[`Compiles content > multiple basic spans 1`] = `
3030
import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
3131
import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
3232
<div>
33-
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></span>
34-
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_1" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></span>
33+
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></span>
34+
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_1" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></span>
3535
</div>;"
3636
`;
3737
@@ -40,9 +40,9 @@ exports[`Compiles content > nested basic spans 1`] = `
4040
import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
4141
import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
4242
<div>
43-
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></span>
43+
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></span>
4444
<div>
45-
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_1" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></span>
45+
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_1" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></span>
4646
</div>
4747
</div>;"
4848
`;
@@ -52,24 +52,24 @@ exports[`Compiles content > nested elements mixed with text 1`] = `
5252
import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
5353
import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
5454
<div>
55-
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></span>
56-
<div><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_1" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /><br /><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_2" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /><b><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_3" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></b><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_4" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /><a href="#"><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_5" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></a><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_6" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></div>
55+
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></span>
56+
<div><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_1" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /><br /><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_2" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /><b><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_3" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></b><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_4" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /><a href="#"><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_5" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></a><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_1" chunkId="chunkId_6" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></div>
5757
</div>;"
5858
`;
5959
6060
exports[`Compiles content > one basic span 1`] = `
6161
"import { loadLocaleData as _loadLocaleData } from "@replexica/react/next";
6262
import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
6363
import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
64-
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></span>;"
64+
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></span>;"
6565
`;
6666
6767
exports[`Skips nodes marked with \`data-replexica-skip\` > skips a single node 1`] = `
6868
"import { loadLocaleData as _loadLocaleData } from "@replexica/react/next";
6969
import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
7070
import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
7171
<div>
72-
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></span>
72+
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></span>
7373
<div data-replexica-skip>
7474
Goodbye, world!
7575
</div>
@@ -81,7 +81,7 @@ exports[`Skips nodes marked with \`data-replexica-skip\` > skips entire subtree
8181
import { loadLocaleFromCookie as _loadLocaleFromCookie } from "@replexica/react/next";
8282
import { ReplexicaServerChunk as _ReplexicaServerChunk } from "@replexica/react/server";
8383
<div>
84-
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`../../i18n/\${locale}.json\`)} /></span>
84+
<span><_ReplexicaServerChunk fileId="fileId_0" scopeId="scopeId_0" chunkId="chunkId_0" loadLocale={_loadLocaleFromCookie} loadLocaleData={locale => import(\`@replexica/translations/\${locale}.json\`)} /></span>
8585
<div data-replexica-skip>
8686
Goodbye, world!
8787
<br />

0 commit comments

Comments
 (0)