Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 24 additions & 9 deletions files/app/config/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,30 @@ import { assert } from '@ember/debug';

const config = loadConfigFromMeta('<%= name %>') as unknown;

assert("config is not an object", typeof config === "object" && config !== null);
assert("modulePrefix was not detected on your config", "modulePrefix" in config && typeof config.modulePrefix === 'string')
assert("locationType was not detected on your config", "locationType" in config && typeof config.locationType === 'string')
assert("rootURL was not detected on your config", "rootURL" in config && typeof config.rootURL === 'string')
assert("APP was not detected on your config", "APP" in config && typeof config.APP === 'object')
assert(
'config is not an object',
typeof config === 'object' && config !== null
);
assert(
'modulePrefix was not detected on your config',
'modulePrefix' in config && typeof config.modulePrefix === 'string'
);
assert(
'locationType was not detected on your config',
'locationType' in config && typeof config.locationType === 'string'
);
assert(
'rootURL was not detected on your config',
'rootURL' in config && typeof config.rootURL === 'string'
);
assert(
'APP was not detected on your config',
'APP' in config && typeof config.APP === 'object'
);

export default config as {
modulePrefix: string,
locationType: string,
rootURL: string,
APP: Record<string, unknown>
modulePrefix: string;
locationType: string;
rootURL: string;
APP: Record<string, unknown>;
} & Record<string, unknown>;
4 changes: 2 additions & 2 deletions files/app/templates/_js_application.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { pageTitle } from 'ember-page-title';
<% if (welcome) {%>import { WelcomePage } from 'ember-welcome-page';<% } %>

<template>
{{pageTitle "<%= namespace %>"}}
<% if (welcome) { %>
{{pageTitle "<%= namespace %>"}}<% if (welcome) { %>

{{outlet}}

{{! The following component displays Ember's default welcome message. }}
Expand Down
4 changes: 2 additions & 2 deletions files/app/templates/_ts_application.gts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { pageTitle } from 'ember-page-title';
<% if (welcome) {%>import { WelcomePage } from 'ember-welcome-page';<% } %>

<template>
{{pageTitle "<%= namespace %>"}}
<% if (welcome) { %>
{{pageTitle "<%= namespace %>"}}<% if (welcome) { %>

{{outlet}}

{{! The following component displays Ember's default welcome message. }}
Expand Down
29 changes: 7 additions & 22 deletions files/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,16 @@
{
"extends": "@ember/app-tsconfig",
"include": [
"app", "tests", "types"
],
"include": ["app", "tests", "types"],
"glint": {
"environment": [
"ember-loose",
"ember-template-imports"
]
"environment": ["ember-loose", "ember-template-imports"]
},
"compilerOptions": {
"allowJs": true,
"paths": {
"<%= name %>/tests/*": [
"./tests/*"
],
"<%= name %>/*": [
"./app/*"
],
"*": [
"./types/*"
]
"<%= name %>/tests/*": ["./tests/*"],
"<%= name %>/*": ["./app/*"],
"*": ["./types/*"]
},
"types": [
"ember-source/types",
"@embroider/core/virtual",
"vite/client"
]
},
"types": ["ember-source/types", "@embroider/core/virtual", "vite/client"]
}
}
6 changes: 0 additions & 6 deletions tests/default.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@
);
});

it('successfully lints', async function () {
let result = await project.execa('pnpm', ['lint']);

console.log(result.stdout);
});

it('successfully builds', async function () {
let result = await project.execa('pnpm', ['build']);

Expand Down Expand Up @@ -137,7 +131,7 @@
`,
);

let testResult = await project.execa('pnpm', [

Check failure on line 134 in tests/default.test.mjs

View workflow job for this annotation

GitHub Actions / Test

tests/default.test.mjs > basic functionality > compat (v1 addon support) > successfully runs tests in dev mode

ExecaError: Command failed with exit code 1: pnpm testem --file testem-dev.js ci not ok 1 Chrome 139.0 - [undefined ms] - Global error: Uncaught Error: Cannot call `setComponentTemplate` multiple times on the same class (`@glimmer/component/template-only`) at http://localhost:7357/node_modules/.vite/deps/chunk-JDFU3MOZ.js?v=c596c258, line 1361 --- browser log: | {"type":"error","text":"[vite] failed to connect to websocket.\nyour current setup:\n (browser) localhost:7357/ <--[HTTP]--> localhost:4200/ (server)\n (browser) localhost:7357/ <--[WebSocket (failing)]--> localhost:4200/ (server)\nCheck out your Vite / network configuration and https://vite.dev/config/server-options.html#server-hmr ."} {"type":"warn","text":"DEPRECATION: importing _isDestroying from the 'ember' barrel file is deprecated. [deprecation id: deprecate-import--is-destroying-from-ember] This will be removed in ember-source 7.0.0. See https://deprecations.emberjs.com/id/import--is-destroying-from-ember for more details.\n at logDeprecationStackTrace (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:294:19)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:237:7)\n at raiseOnDeprecation (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:319:7)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:237:7)\n at http://localhost:7357/node_modules/.vite/deps/chunk-2UZNJZTL.js?v=c596c258:714:10\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:237:7)\n at handleDeprecationWorkflow (http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=77889c56:59:7)\n at http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=77889c56:11:47\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:237:7)"} {"type":"warn","text":"DEPRECATION: importing _isDestroyed from the 'ember' barrel file is deprecated. [deprecation id: deprecate-import--is-destroyed-from-ember] This will be removed in ember-source 7.0.0. See https://deprecations.emberjs.com/id/import--is-destroyed-from-ember for more details.\n at logDeprecationStackTrace (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:294:19)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:237:7)\n at raiseOnDeprecation (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:319:7)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:237:7)\n at http://localhost:7357/node_modules/.vite/deps/chunk-2UZNJZTL.js?v=c596c258:714:10\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:237:7)\n at handleDeprecationWorkflow (http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=77889c56:59:7)\n at http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=77889c56:11:47\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:237:7)"} {"type":"warn","text":"DEPRECATION: importing destroy from the 'ember' barrel file is deprecated. [deprecation id: deprecate-import-destroy-from-ember] This will be removed in ember-source 7.0.0. See https://deprecations.emberjs.com/id/import-destroy-from-ember for more details.\n at logDeprecationStackTrace (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:294:19)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:237:7)\n at raiseOnDeprecation (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=c596c258:319:7)\n at HANDLERS.<computed

Check failure on line 134 in tests/default.test.mjs

View workflow job for this annotation

GitHub Actions / Test

tests/default.test.mjs > basic functionality > defaults > successfully runs tests in dev mode

ExecaError: Command failed with exit code 1: pnpm testem --file testem-dev.js ci not ok 1 Chrome 139.0 - [undefined ms] - Global error: Uncaught Error: Cannot call `setComponentTemplate` multiple times on the same class (`@glimmer/component/template-only`) at http://localhost:7357/node_modules/.vite/deps/chunk-FNYHRVNV.js?v=55d40d75, line 1271 --- browser log: | {"type":"info","text":"[vite] Direct websocket connection fallback. Check out https://vite.dev/config/server-options.html#server-hmr to remove the previous connection error."} {"type":"warn","text":"DEPRECATION: Using WarpDrive with EmberJS requires configuring it to use Ember's reactivity system.\nPreviously this was provided by installing the package '@ember-data/tracking', but this package is now deprecated.\n\nTo resolve this deprecation, follow these steps:\n- remove \"@ember-data/tracking\" and (if needed) \"@ember-data-types/tracking\" from your project in both your package.json and tsconfig.json\n- add \"@warp-drive/ember\" to your project in both your package.json and tsconfig.json\n- add the following import to your app.js file:\n\n\t```\n\timport '@warp-drive/ember/install';\n\t```\n\n- mark this deprecation as resolved in your project by adding the following to your WarpDrive config in ember-cli-build.js:\n\n\t```\n\tconst { setConfig } = await import(\"@warp-drive/build-config\");\n\tsetConfig(app, __dirname, {\n\t deprecations: {\n\t DEPRECATE_TRACKING_PACKAGE: false,\n\t },\n\t});\n\t```\n\nFor more information, see the Package Unification RFC: https://rfcs.emberjs.com/id/1075-warp-drive-package-unification/ [deprecation id: warp-drive.deprecate-tracking-package] This will be removed in warp-drive 6.0.0. See https://deprecations.emberjs.com/id/warp-drive.deprecate-tracking-package for more details.\n at logDeprecationStackTrace (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=55d40d75:285:19)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=55d40d75:228:7)\n at raiseOnDeprecation (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=55d40d75:310:7)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=55d40d75:228:7)\n at http://localhost:7357/node_modules/.vite/deps/chunk-ISDSZD4O.js?v=55d40d75:713:10\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=55d40d75:228:7)\n at handleDeprecationWorkflow (http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=ea710cd7:59:7)\n at http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=ea710cd7:11:47\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=55d40d75:228:7)"} {"type":"warn","text":"DEPRECATION: You are relying on ember-data auto-magically installing the store service. Use `export { default } from 'ember-data/store';` in app/services/store.js instead [deprecation id: ember-data:deprecate-legacy-imports] This will be removed in ember-data 6.0.\n at logDeprecationStackTrace (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=55d40d75:285:19)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=55d40d75:228:7)\n at raiseOnDeprecation (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=55d40d75:310:7)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=55d40d75:228:7)\n at http://localhost:7357/node_modules/.vite/deps/chunk-ISDSZD4O.js?v=55d40d75:713:10\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=55d40d75:228:7)\n at handleDeprecationWorkflow (http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=ea710cd7:59:7)\n at http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=ea710cd7:11:

Check failure on line 134 in tests/default.test.mjs

View workflow job for this annotation

GitHub Actions / Test

tests/default.test.mjs > basic functionality > compat (v1 addon support) > successfully runs tests in dev mode

ExecaError: Command failed with exit code 1: pnpm testem --file testem-dev.js ci not ok 1 Chrome 139.0 - [undefined ms] - Global error: Uncaught Error: Cannot call `setComponentTemplate` multiple times on the same class (`@glimmer/component/template-only`) at http://localhost:7357/node_modules/.vite/deps/chunk-JDFU3MOZ.js?v=cdd725b5, line 1361 --- browser log: | {"type":"error","text":"[vite] failed to connect to websocket.\nyour current setup:\n (browser) localhost:7357/ <--[HTTP]--> localhost:4200/ (server)\n (browser) localhost:7357/ <--[WebSocket (failing)]--> localhost:4200/ (server)\nCheck out your Vite / network configuration and https://vite.dev/config/server-options.html#server-hmr ."} {"type":"warn","text":"DEPRECATION: importing _isDestroying from the 'ember' barrel file is deprecated. [deprecation id: deprecate-import--is-destroying-from-ember] This will be removed in ember-source 7.0.0. See https://deprecations.emberjs.com/id/import--is-destroying-from-ember for more details.\n at logDeprecationStackTrace (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:294:19)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:237:7)\n at raiseOnDeprecation (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:319:7)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:237:7)\n at http://localhost:7357/node_modules/.vite/deps/chunk-53WC4D5U.js?v=cdd725b5:714:10\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:237:7)\n at handleDeprecationWorkflow (http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=df15b999:59:7)\n at http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=df15b999:11:47\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:237:7)"} {"type":"warn","text":"DEPRECATION: importing _isDestroyed from the 'ember' barrel file is deprecated. [deprecation id: deprecate-import--is-destroyed-from-ember] This will be removed in ember-source 7.0.0. See https://deprecations.emberjs.com/id/import--is-destroyed-from-ember for more details.\n at logDeprecationStackTrace (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:294:19)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:237:7)\n at raiseOnDeprecation (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:319:7)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:237:7)\n at http://localhost:7357/node_modules/.vite/deps/chunk-53WC4D5U.js?v=cdd725b5:714:10\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:237:7)\n at handleDeprecationWorkflow (http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=df15b999:59:7)\n at http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=df15b999:11:47\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:237:7)"} {"type":"warn","text":"DEPRECATION: importing destroy from the 'ember' barrel file is deprecated. [deprecation id: deprecate-import-destroy-from-ember] This will be removed in ember-source 7.0.0. See https://deprecations.emberjs.com/id/import-destroy-from-ember for more details.\n at logDeprecationStackTrace (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:294:19)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:237:7)\n at raiseOnDeprecation (http://localhost:7357/node_modules/.vite/deps/chunk-MTWM7EXJ.js?v=cdd725b5:319:7)\n at HANDLERS.<computed

Check failure on line 134 in tests/default.test.mjs

View workflow job for this annotation

GitHub Actions / Test

tests/default.test.mjs > basic functionality > defaults > successfully runs tests in dev mode

ExecaError: Command failed with exit code 1: pnpm testem --file testem-dev.js ci not ok 1 Chrome 139.0 - [undefined ms] - Global error: Uncaught Error: Cannot call `setComponentTemplate` multiple times on the same class (`@glimmer/component/template-only`) at http://localhost:7357/node_modules/.vite/deps/chunk-FNYHRVNV.js?v=2ea567c8, line 1271 --- browser log: | {"type":"info","text":"[vite] Direct websocket connection fallback. Check out https://vite.dev/config/server-options.html#server-hmr to remove the previous connection error."} {"type":"warn","text":"DEPRECATION: Using WarpDrive with EmberJS requires configuring it to use Ember's reactivity system.\nPreviously this was provided by installing the package '@ember-data/tracking', but this package is now deprecated.\n\nTo resolve this deprecation, follow these steps:\n- remove \"@ember-data/tracking\" and (if needed) \"@ember-data-types/tracking\" from your project in both your package.json and tsconfig.json\n- add \"@warp-drive/ember\" to your project in both your package.json and tsconfig.json\n- add the following import to your app.js file:\n\n\t```\n\timport '@warp-drive/ember/install';\n\t```\n\n- mark this deprecation as resolved in your project by adding the following to your WarpDrive config in ember-cli-build.js:\n\n\t```\n\tconst { setConfig } = await import(\"@warp-drive/build-config\");\n\tsetConfig(app, __dirname, {\n\t deprecations: {\n\t DEPRECATE_TRACKING_PACKAGE: false,\n\t },\n\t});\n\t```\n\nFor more information, see the Package Unification RFC: https://rfcs.emberjs.com/id/1075-warp-drive-package-unification/ [deprecation id: warp-drive.deprecate-tracking-package] This will be removed in warp-drive 6.0.0. See https://deprecations.emberjs.com/id/warp-drive.deprecate-tracking-package for more details.\n at logDeprecationStackTrace (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=2ea567c8:285:19)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=2ea567c8:228:7)\n at raiseOnDeprecation (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=2ea567c8:310:7)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=2ea567c8:228:7)\n at http://localhost:7357/node_modules/.vite/deps/chunk-PWM6G4NI.js?v=2ea567c8:713:10\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=2ea567c8:228:7)\n at handleDeprecationWorkflow (http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=c611e88a:59:7)\n at http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=c611e88a:11:47\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=2ea567c8:228:7)"} {"type":"warn","text":"DEPRECATION: You are relying on ember-data auto-magically installing the store service. Use `export { default } from 'ember-data/store';` in app/services/store.js instead [deprecation id: ember-data:deprecate-legacy-imports] This will be removed in ember-data 6.0.\n at logDeprecationStackTrace (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=2ea567c8:285:19)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=2ea567c8:228:7)\n at raiseOnDeprecation (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=2ea567c8:310:7)\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=2ea567c8:228:7)\n at http://localhost:7357/node_modules/.vite/deps/chunk-PWM6G4NI.js?v=2ea567c8:713:10\n at HANDLERS.<computed> (http://localhost:7357/node_modules/.vite/deps/chunk-VPCMFPHL.js?v=2ea567c8:228:7)\n at handleDeprecationWorkflow (http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=c611e88a:59:7)\n at http://localhost:7357/node_modules/.vite/deps/ember-cli-deprecation-workflow.js?v=c611e88a:11:
'testem',
'--file',
'testem-dev.js',
Expand Down
24 changes: 24 additions & 0 deletions tests/helpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,30 @@ export const emberCli = findEmber();

const appName = 'test-app';

export function newProject({ name = appName, flags = [] } = {}) {
let dir;

beforeAll(async () => {
const tmpDir = (await tmp.dir()).path;
dir = join(tmpDir, name);
await execa({
cwd: tmpDir,
})`${localEmberCli} new ${name} -b ${blueprintPath} --skip-git --pnpm ${flags}`;
});

return {
appName: () => name,
dir: () => dir,
$: (...args) => execa({ cwd: dir })(...args),
execa: (program, args, options = {}) => {
return execa(program, args, {
cwd: dir,
...options,
});
},
};
}

export function newProjectWithFixtures({
flags = [],
fixturePath,
Expand Down
27 changes: 27 additions & 0 deletions tests/lint.test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { describe, it, expect } from 'vitest';

import { newProject } from './helpers.mjs';

describe('linting & formatting', function () {
describe('JavaScript', function () {
let project = newProject();

it('yields output for JavaScript without errors', async function () {
let { exitCode } = await project.execa('pnpm', ['lint']);

expect(exitCode).to.equal(0);
});
});

describe('TypeScript', function () {
let project = newProject({
flags: ['--typescript'],
});

it('yields output for JavaScript without errors', async function () {
let { exitCode } = await project.execa('pnpm', ['lint']);

expect(exitCode).to.equal(0);
});
});
});
Loading