diff --git a/packages/command-tests/commands.js b/packages/command-tests/commands.js index 8dc09a7a..236e5bf7 100644 --- a/packages/command-tests/commands.js +++ b/packages/command-tests/commands.js @@ -120,8 +120,8 @@ async function main() { await testLint(); // Temporarily disabled due to bizarre typing issues in the CI that cannot be reproduced in any local environment - // logger(`Testing unit tests....`); - // await testTest(); + logger(`Testing unit tests....`); + await testTest(); if (LIMIT_TESTS) { logger(`Quick tested!`); @@ -131,10 +131,6 @@ async function main() { logger(`Testing 'build' command...`); await testBuild(); - // Temporarily disabled due to bizarre typing issues in the CI that cannot be reproduced in any local environment - // logger(`Testing 'test:unit' command...`); - // await testTestUnit(); - logger(`Testing 'release' command...`); await testRelease(); @@ -211,7 +207,6 @@ async function main() { await execAsync("npm run lint", workDir, logger); } - // eslint-disable-next-line no-unused-vars async function testTest() { if (platform === "native") { await execFailedAsync("npm test -- --forceExit", workDir); @@ -235,14 +230,6 @@ async function main() { } } - // eslint-disable-next-line no-unused-vars - async function testTestUnit() { - await execAsync("npm run test:unit -- --forceExit", workDir, logger); - if (!existsSync(join(workDir, `/dist/coverage/clover.xml`))) { - throw new Error("Expected coverage file to be generated, but it wasn't."); - } - } - async function testRelease() { rm("-rf", join(workDir, "dist")); await execAsync("npm run release", workDir, logger); diff --git a/packages/generator-widget/CHANGELOG.md b/packages/generator-widget/CHANGELOG.md index 842d954c..2aa2b3cf 100644 --- a/packages/generator-widget/CHANGELOG.md +++ b/packages/generator-widget/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +### Changed + +- We cleaned up a template with unused imports. + ## [11.11.0] - 2026-06-04 ### Changed diff --git a/packages/generator-widget/generators/app/templates/pluggable/web/fullTemplateTs/src/components/__tests__/Alert.spec.tsx.ejs b/packages/generator-widget/generators/app/templates/pluggable/web/fullTemplateTs/src/components/__tests__/Alert.spec.tsx.ejs index 04f15732..d03b3924 100644 --- a/packages/generator-widget/generators/app/templates/pluggable/web/fullTemplateTs/src/components/__tests__/Alert.spec.tsx.ejs +++ b/packages/generator-widget/generators/app/templates/pluggable/web/fullTemplateTs/src/components/__tests__/Alert.spec.tsx.ejs @@ -1,4 +1,4 @@ -import { render, screen } from "@testing-library/react"; +import { render } from "@testing-library/react"; import "@testing-library/jest-dom"; import { Alert } from "../Alert";