From 90dfe3bd9af04130773a2f5b7add4800cd42a9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr?= <8machy@seznam.cz> Date: Sat, 28 Oct 2023 21:32:20 +0200 Subject: [PATCH] Remove astro v1 tests --- packages/astro/tests/jest/astrov1.test.ts | 50 ------------------- .../astro/tests/jest/astrov1/input/.gitignore | 22 -------- .../tests/jest/astrov1/input/astro.config.mjs | 16 ------ .../tests/jest/astrov1/input/package.json | 17 ------- .../input/src/components/Subtitle.astro | 1 - .../astrov1/input/src/layouts/Layout.astro | 22 -------- .../jest/astrov1/input/src/pages/index.astro | 11 ---- .../jest/astrov1/input/src/pages/second.astro | 9 ---- .../jest/astrov1/input/stylify.config.mjs | 10 ---- .../tests/jest/astrov1/input/tsconfig.json | 3 -- 10 files changed, 161 deletions(-) delete mode 100644 packages/astro/tests/jest/astrov1.test.ts delete mode 100644 packages/astro/tests/jest/astrov1/input/.gitignore delete mode 100644 packages/astro/tests/jest/astrov1/input/astro.config.mjs delete mode 100644 packages/astro/tests/jest/astrov1/input/package.json delete mode 100644 packages/astro/tests/jest/astrov1/input/src/components/Subtitle.astro delete mode 100644 packages/astro/tests/jest/astrov1/input/src/layouts/Layout.astro delete mode 100644 packages/astro/tests/jest/astrov1/input/src/pages/index.astro delete mode 100644 packages/astro/tests/jest/astrov1/input/src/pages/second.astro delete mode 100644 packages/astro/tests/jest/astrov1/input/stylify.config.mjs delete mode 100644 packages/astro/tests/jest/astrov1/input/tsconfig.json diff --git a/packages/astro/tests/jest/astrov1.test.ts b/packages/astro/tests/jest/astrov1.test.ts deleted file mode 100644 index 1f0a4ced..00000000 --- a/packages/astro/tests/jest/astrov1.test.ts +++ /dev/null @@ -1,50 +0,0 @@ -import path from 'path'; -import FastGlob from 'fast-glob'; -import fs from 'fs'; -import fse from 'fs-extra'; -import TestUtils from '../../../../tests/TestUtils'; -import { execSync } from 'child_process'; - -const testName = 'astrov1'; -const testUtils = new TestUtils('astro', testName); - -const bundleTestDir = testUtils.getTestDir(); -const buildTmpDir = path.join(testUtils.getTmpDir(), testUtils.getTestName() + '-build'); - -if (!fs.existsSync(buildTmpDir)) { - fs.mkdirSync(buildTmpDir, {recursive: true}); -} - -fse.copySync(path.join(bundleTestDir, 'input'), buildTmpDir); - -execSync(`pnpm install . && pnpm build .`, {stdio: 'inherit', cwd: buildTmpDir}); - -const indexHtmlPart = ` -
-