Skip to content

Commit 5997791

Browse files
committed
feat(snap-tests): add installation and formatting checks for Astro and Vue shims
1 parent aa3b53b commit 5997791

4 files changed

Lines changed: 26 additions & 2 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
> vp create astro --no-interactive -- my-astro-app --yes --skip-houston --template basics # create Astro app
22
> cat my-astro-app/src/env.d.ts # check Astro shim
33
/// <reference types="astro/client" />
4+
5+
> cd my-astro-app && vp install -- --no-frozen-lockfile # install dependencies
6+
> cd my-astro-app && vp check --fix # fix generated formatting and ensure no errors
7+
VITE+ - The Unified Toolchain for the Web
8+
9+
pass: Formatting completed for checked files (<variable>ms)
10+
pass: Found no warnings, lint errors, or type errors in 6 files (<variable>ms, <variable> threads)

packages/cli/snap-tests-global/create-framework-shim-astro/steps.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"command": "vp create astro --no-interactive -- my-astro-app --yes --skip-houston --template basics # create Astro app",
66
"ignoreOutput": true
77
},
8-
"cat my-astro-app/src/env.d.ts # check Astro shim"
8+
"cat my-astro-app/src/env.d.ts # check Astro shim",
9+
{
10+
"command": "cd my-astro-app && vp install -- --no-frozen-lockfile # install dependencies",
11+
"ignoreOutput": true
12+
},
13+
"cd my-astro-app && vp check --fix # fix generated formatting and ensure no errors"
914
]
1015
}

packages/cli/snap-tests-global/create-framework-shim-vue/snap.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@ declare module '*.vue' {
55
const component: DefineComponent<{}, {}, unknown>;
66
export default component;
77
}
8+
9+
> cd vite-plus-application && vp install # install dependencies
10+
> cd vite-plus-application && vp check --fix # fix generated formatting and ensure no errors
11+
VITE+ - The Unified Toolchain for the Web
12+
13+
pass: Formatting completed for checked files (<variable>ms)
14+
pass: Found no warnings, lint errors, or type errors in 5 files (<variable>ms, <variable> threads)

packages/cli/snap-tests-global/create-framework-shim-vue/steps.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"command": "vp create vite:application --no-interactive -- --template vue-ts # create Vue+TS app",
66
"ignoreOutput": true
77
},
8-
"cat vite-plus-application/src/env.d.ts # check Vue shim was added"
8+
"cat vite-plus-application/src/env.d.ts # check Vue shim was added",
9+
{
10+
"command": "cd vite-plus-application && vp install # install dependencies",
11+
"ignoreOutput": true
12+
},
13+
"cd vite-plus-application && vp check --fix # fix generated formatting and ensure no errors"
914
]
1015
}

0 commit comments

Comments
 (0)