MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / confirmViteBlueprint

Function confirmViteBlueprint

tests/helpers-internal/blueprint.js:8–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const { expect } = require('chai');
7
8function confirmViteBlueprint() {
9 let pkgJson = fs.readJsonSync('package.json');
10 let viteConfig = globSync('vite.config.{js,cjs,mjs}');
11 let emberCliUpdate = fs.readJsonSync('config/ember-cli-update.json');
12
13 expect(pkgJson.devDependencies['vite'], 'Installs vite in "devDependencies"').to.exist;
14 expect(pkgJson.scripts['start']).to.contain('vite');
15 expect(viteConfig.length, 'creates a vite configuration').to.equal(1);
16 expect(emberCliUpdate.packages[0].name).to.equal('@ember/app-blueprint');
17}
18
19module.exports = {
20 confirmViteBlueprint,

Callers 2

new-test.jsFile · 0.85
confirmBlueprintedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…