aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/test
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2023-05-30 16:18:20 -0400
committerGravatar GitHub <noreply@github.com> 2023-05-30 16:18:20 -0400
commitbef3a75dbc48d584daff9f7f3d5a8937b0356170 (patch)
tree536921af91ee7864192369e39be6f99eed134741 /packages/integrations/markdoc/test
parentc7897f20a9d6e04f9cdee9a0f7e48e59adf1e59a (diff)
downloadastro-bef3a75dbc48d584daff9f7f3d5a8937b0356170.tar.gz
astro-bef3a75dbc48d584daff9f7f3d5a8937b0356170.tar.zst
astro-bef3a75dbc48d584daff9f7f3d5a8937b0356170.zip
Markdoc - remove `$entry` variable (#7244)
* refactor: remove entry prop from `getRenderModule()` * refactor: remove `$entry` from markdoc * test: update entry-prop -> variables test * refactor: unify `getEntryConfigByExt` * chore: clean up shared content / data get logic * docs: update `$entry` recommendation * chore: rename entry-prop -> variables * chore: changeset * chore: missed a spot
Diffstat (limited to 'packages/integrations/markdoc/test')
-rw-r--r--packages/integrations/markdoc/test/fixtures/variables/astro.config.mjs (renamed from packages/integrations/markdoc/test/fixtures/entry-prop/astro.config.mjs)0
-rw-r--r--packages/integrations/markdoc/test/fixtures/variables/package.json (renamed from packages/integrations/markdoc/test/fixtures/entry-prop/package.json)2
-rw-r--r--packages/integrations/markdoc/test/fixtures/variables/src/content/blog/entry.mdoc (renamed from packages/integrations/markdoc/test/fixtures/entry-prop/src/content/blog/entry.mdoc)0
-rw-r--r--packages/integrations/markdoc/test/fixtures/variables/src/content/config.ts (renamed from packages/integrations/markdoc/test/fixtures/entry-prop/src/content/config.ts)0
-rw-r--r--packages/integrations/markdoc/test/fixtures/variables/src/pages/index.astro (renamed from packages/integrations/markdoc/test/fixtures/entry-prop/src/pages/index.astro)2
-rw-r--r--packages/integrations/markdoc/test/variables.test.js (renamed from packages/integrations/markdoc/test/entry-prop.test.js)4
6 files changed, 4 insertions, 4 deletions
diff --git a/packages/integrations/markdoc/test/fixtures/entry-prop/astro.config.mjs b/packages/integrations/markdoc/test/fixtures/variables/astro.config.mjs
index 29d846359..29d846359 100644
--- a/packages/integrations/markdoc/test/fixtures/entry-prop/astro.config.mjs
+++ b/packages/integrations/markdoc/test/fixtures/variables/astro.config.mjs
diff --git a/packages/integrations/markdoc/test/fixtures/entry-prop/package.json b/packages/integrations/markdoc/test/fixtures/variables/package.json
index 149f6c35a..0ac7a3c82 100644
--- a/packages/integrations/markdoc/test/fixtures/entry-prop/package.json
+++ b/packages/integrations/markdoc/test/fixtures/variables/package.json
@@ -1,5 +1,5 @@
{
- "name": "@test/markdoc-entry-prop",
+ "name": "@test/markdoc-variables",
"version": "0.0.0",
"private": true,
"dependencies": {
diff --git a/packages/integrations/markdoc/test/fixtures/entry-prop/src/content/blog/entry.mdoc b/packages/integrations/markdoc/test/fixtures/variables/src/content/blog/entry.mdoc
index 151d5a81d..151d5a81d 100644
--- a/packages/integrations/markdoc/test/fixtures/entry-prop/src/content/blog/entry.mdoc
+++ b/packages/integrations/markdoc/test/fixtures/variables/src/content/blog/entry.mdoc
diff --git a/packages/integrations/markdoc/test/fixtures/entry-prop/src/content/config.ts b/packages/integrations/markdoc/test/fixtures/variables/src/content/config.ts
index ff473d4af..ff473d4af 100644
--- a/packages/integrations/markdoc/test/fixtures/entry-prop/src/content/config.ts
+++ b/packages/integrations/markdoc/test/fixtures/variables/src/content/config.ts
diff --git a/packages/integrations/markdoc/test/fixtures/entry-prop/src/pages/index.astro b/packages/integrations/markdoc/test/fixtures/variables/src/pages/index.astro
index d14187651..a2766faf0 100644
--- a/packages/integrations/markdoc/test/fixtures/entry-prop/src/pages/index.astro
+++ b/packages/integrations/markdoc/test/fixtures/variables/src/pages/index.astro
@@ -14,6 +14,6 @@ const { Content } = await entry.render();
<title>Astro</title>
</head>
<body>
- <Content />
+ <Content {entry} />
</body>
</html>
diff --git a/packages/integrations/markdoc/test/entry-prop.test.js b/packages/integrations/markdoc/test/variables.test.js
index b47ccf739..90d5fe276 100644
--- a/packages/integrations/markdoc/test/entry-prop.test.js
+++ b/packages/integrations/markdoc/test/variables.test.js
@@ -3,9 +3,9 @@ import { expect } from 'chai';
import { loadFixture } from '../../../astro/test/test-utils.js';
import markdoc from '../dist/index.js';
-const root = new URL('./fixtures/entry-prop/', import.meta.url);
+const root = new URL('./fixtures/variables/', import.meta.url);
-describe('Markdoc - Entry prop', () => {
+describe('Markdoc - Variables', () => {
let baseFixture;
before(async () => {