chore(docs): Use local version of packages instead of NPM release #384
Annotations
8 errors and 1 warning
Test:
packages/aik-route-config/__tests__/hoist.test.ts#L15
Error: Snapshot `Nothing to hoist 1` mismatched
- Expected
+ Received
- null
+ {
+ "code": "import {
+ Fragment,
+ render as $$render,
+ createAstro as $$createAstro,
+ createComponent as $$createComponent,
+ renderComponent as $$renderComponent,
+ renderHead as $$renderHead,
+ maybeRenderHead as $$maybeRenderHead,
+ unescapeHTML as $$unescapeHTML,
+ renderSlot as $$renderSlot,
+ mergeSlots as $$mergeSlots,
+ addAttribute as $$addAttribute,
+ spreadAttributes as $$spreadAttributes,
+ defineStyleVars as $$defineStyleVars,
+ defineScriptVars as $$defineScriptVars,
+ renderTransition as $$renderTransition,
+ createTransitionScope as $$createTransitionScope,
+ renderScript as $$renderScript,
+ createMetadata as $$createMetadata
+ } from "astro/runtime/server/index.js";
+
+
+ export const $$metadata = $$createMetadata("<stdin>", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: new Set([]), hoisted: [] });
+
+ export function getStaticPaths() {
+ return [
+ {
+ params: {
+ id: '1',
+ },
+ },
+ ];
+ }
+ const $$stdin = $$createComponent(($$result, $$props, $$slots) => {
+
+ return $$render`${$$maybeRenderHead($$result)}<p>Simple page</p>`;
+ }, '<stdin>', undefined);
+ export default $$stdin;
+ ",
+ "map": {
+ "mappings": "AAAA,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;EACL,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EACR,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAClB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAC5B,CAAC,CAAC,CAAC,CAAC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AC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAChD,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAC9B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,
|
Test:
packages/aik-route-config/__tests__/hoist.test.ts#L28
Error: Snapshot `hoist simple call 1` mismatched
- Expected
+ Received
@@ -23,22 +23,15 @@
import * as $$module1 from 'magic:hoist';
export const $$metadata = $$createMetadata("<stdin>", { modules: [{ module: $$module1, specifier: 'magic:hoist', assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: new Set([]), hoisted: [] });
- const $$Astro = $$createAstro();
+ const $$stdin = $$createComponent(($$result, $$props, $$slots) => {
- await customName({
- bundleFile: import.meta.url,
- sourceFile: "/src/pages/simple.astro"
- }, 'hosted value');
- const Astro = $$Astro;
- const $$stdin = $$createComponent(async ($$result, $$props, $$slots) => {
- const Astro = $$result.createAstro($$Astro, $$props, $$slots);
- Astro.self = $$stdin;
+ customName('hosted value');
- return $$render`${$$maybeRenderHead($$result)}<p>Simple page</p>`;
+ return $$render`${$$maybeRenderHead($$result)}<p>Simple page</p>`;
}, '<stdin>', undefined);
export default $$stdin;
"
❯ __tests__/hoist.test.ts:28:23
|
Test:
packages/aik-route-config/__tests__/hoist.test.ts#L86
Error: Snapshot `hoist awaited call 1` mismatched
- Expected
+ Received
@@ -23,22 +23,15 @@
import * as $$module1 from 'magic:hoist';
export const $$metadata = $$createMetadata("<stdin>", { modules: [{ module: $$module1, specifier: 'magic:hoist', assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: new Set([]), hoisted: [] });
- const $$Astro = $$createAstro();
+ const $$stdin = $$createComponent(async ($$result, $$props, $$slots) => {
- await customName({
- bundleFile: import.meta.url,
- sourceFile: "/src/pages/simple.astro"
- }, 'hosted value');
- const Astro = $$Astro;
- const $$stdin = $$createComponent(async ($$result, $$props, $$slots) => {
- const Astro = $$result.createAstro($$Astro, $$props, $$slots);
- Astro.self = $$stdin;
+ await customName('hosted value');
- return $$render`${$$maybeRenderHead($$result)}<p>Simple page</p>`;
+ return $$render`${$$maybeRenderHead($$result)}<p>Simple page</p>`;
}, '<stdin>', undefined);
export default $$stdin;
"
❯ __tests__/hoist.test.ts:86:23
|
Test:
packages/aik-route-config/src/hoistGlobalPlugin.ts#L228
AssertionError: Unexpected phase for call expression
❯ Context.visitCallExpression src/hoistGlobalPlugin.ts:228:14
❯ Context.invokeVisitorMethod ../../node_modules/.pnpm/[email protected]/node_modules/ast-types/src/path-visitor.ts:402:45
❯ Visitor.PVp.visitWithoutReset ../../node_modules/.pnpm/[email protected]/node_modules/ast-types/src/path-visitor.ts:254:24
❯ visitChildren ../../node_modules/.pnpm/[email protected]/node_modules/ast-types/src/path-visitor.ts:304:17
❯ Context.traverse ../../node_modules/.pnpm/[email protected]/node_modules/ast-types/src/path-visitor.ts:446:14
❯ Context.visitExpressionStatement src/hoistGlobalPlugin.ts:246:9
❯ Context.invokeVisitorMethod ../../node_modules/.pnpm/[email protected]/node_modules/ast-types/src/path-visitor.ts:402:45
❯ Visitor.PVp.visitWithoutReset ../../node_modules/.pnpm/[email protected]/node_modules/ast-types/src/path-visitor.ts:254:24
❯ NodePath.each ../../node_modules/.pnpm/[email protected]/node_modules/ast-types/src/path.ts:124:18
❯ visitChildren ../../node_modules/.pnpm/[email protected]/node_modules/ast-types/src/path-visitor.ts:277:12
|
Test:
packages/aik-route-config/__tests__/hoist.test.ts#L221
AssertionError: expected [ { level: 'warn', …(2) } ] to deeply equal [ { label: 'root', …(2) } ]
- Expected
+ Received
Array [
Object {
"label": "root",
"level": "warn",
- "message": "Detected Astro module with unexpected structure. Module \"/src/pages/simple.astro\" has nested $$createComponent declarations.
+ "message": "Detected Astro module with unexpected structure. Module \"/src/pages/simple.astro\" missing an $$Astro declaration before $$createComponent.
Please send a report on https://github.com/Fryuni/inox-tools/issues/new with the module for reproduction",
},
]
❯ __tests__/hoist.test.ts:221:26
|
Test:
packages/aik-route-config/__tests__/scriptBlocks.test.ts#L15
Error: Snapshot `ignore script blocks 1` mismatched
- Expected
+ Received
@@ -32,34 +32,26 @@
import { t } from 'i18n:astro';
document.getElementById('span')!.innerHTML = t('about');
` }] });
- const $$Astro = $$createAstro();
+ const $$stdin = $$createComponent(($$result, $$props, $$slots) => {
- await sitemap({
- bundleFile: import.meta.url,
- sourceFile: "/src/pages/index.astro"
- }, 'TEST');
+ // From:
+ // https://github.com/astrolicious/i18n/blob/a69646636ad32e42620b240fe50dff7476ab6606/playground/src/routes/index.astro
- const Astro = $$Astro;
- const $$stdin = $$createComponent(async ($$result, $$props, $$slots) => {
- const Astro = $$result.createAstro($$Astro, $$props, $$slots);
- Astro.self = $$stdin;
- // From:
- // https://github.com/astrolicious/i18n/blob/a69646636ad32e42620b240fe50dff7476ab6606/playground/src/routes/index.astro
-
+ const title = t('home:title');
- const title = t('home:title');
+ sitemap('TEST');
- return $$render`${$$renderComponent($$result,'Layout',Layout,{"title":(title)},{"default": () => $$render`
- ${$$maybeRenderHead($$result)}<h1>${title}</h1>
- <p>${t('home:description', { value: '9' })}</p>
- <span id="span"></span>
-
- `,})}`;
+ return $$render`${$$renderComponent($$result,'Layout',Layout,{"title":(title)},{"default": () => $$render`
+ ${$$maybeRenderHead($$result)}<h1>${title}</h1>
+ <p>${t('home:description', { value: '9' })}</p>
+ <span id="span"></span>
+
+ `,})}`;
}, '<stdin>', undefined);
export default $$stdin;
"
❯ __tests__/scriptBlocks.test.ts:15:23
|
Test
@inox-tools/aik-route-config#test: command (/home/runner/work/inox-tools/inox-tools/packages/aik-route-config) /home/runner/setup-pnpm/node_modules/.bin/pnpm run test exited (1)
|
Test
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: pnpm/action-setup@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading