From 4b598b9864c7274f75ce9c64fa278ebfc24472f1 Mon Sep 17 00:00:00 2001 From: martincostello Date: Mon, 1 Dec 2025 10:09:01 +0000 Subject: [PATCH 1/2] Remove yeoman-assert Remove deprecated `yeoman-assert` package whose functionality is now part of `yeoman-test`. --- package-lock.json | 12 ------------ package.json | 1 - test/test-app.js | 2 +- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8596ecb..de17dcb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "glob": "^11.0.3", "mocha": "^11.7.1", "prettier": "3.6.2", - "yeoman-assert": "^3.1.1", "yeoman-environment": "^5.0.0", "yeoman-test": "^11.0.0" }, @@ -6007,17 +6006,6 @@ "node": ">=8" } }, - "node_modules/yeoman-assert": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yeoman-assert/-/yeoman-assert-3.1.1.tgz", - "integrity": "sha512-bCuLb/j/WzpvrJZCTdJJLFzm7KK8IYQJ3+dF9dYtNs2CUYyezFJDuULiZ2neM4eqjf45GN1KH/MzCTT3i90wUQ==", - "deprecated": "This package is deprecated. See: https://github.com/yeoman/yeoman/issues/1779", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4" - } - }, "node_modules/yeoman-environment": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/yeoman-environment/-/yeoman-environment-5.1.1.tgz", diff --git a/package.json b/package.json index 5ee8f35..cabc3ee 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,6 @@ "glob": "^11.0.3", "mocha": "^11.7.1", "prettier": "3.6.2", - "yeoman-assert": "^3.1.1", "yeoman-environment": "^5.0.0", "yeoman-test": "^11.0.0" }, diff --git a/test/test-app.js b/test/test-app.js index 3569e6f..95069d3 100644 --- a/test/test-app.js +++ b/test/test-app.js @@ -1,6 +1,6 @@ 'use strict'; -import assert from 'yeoman-assert'; +import assert from 'yeoman-test'; import { glob } from 'glob'; import helpers, { result } from 'yeoman-test'; import os from 'os'; From 58d4c96187d188eca80c5fe68b735b5dca275242 Mon Sep 17 00:00:00 2001 From: martincostello Date: Mon, 1 Dec 2025 10:16:28 +0000 Subject: [PATCH 2/2] Fix tests Replace `yeoman-test:assert.strictEqual()` with `assert:asserts.equal()`. --- test/test-app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test-app.js b/test/test-app.js index 95069d3..0cbc179 100644 --- a/test/test-app.js +++ b/test/test-app.js @@ -1,6 +1,7 @@ 'use strict'; import assert from 'yeoman-test'; +import asserts from 'assert'; import { glob } from 'glob'; import helpers, { result } from 'yeoman-test'; import os from 'os'; @@ -165,7 +166,7 @@ describe('aspnet-oauth:app', () => { if (clone.status !== 0 && clone.output) { console.error(clone.output.toString('utf8')); } - assert.strictEqual(clone.status, 0); + asserts.equal(clone.status, 0); // Run the generator to create the project context = await helpers @@ -190,7 +191,7 @@ describe('aspnet-oauth:app', () => { if (dotnetSlnAdd.status !== 0) { console.error(dotnetSlnAdd.output.toString('utf8')); } - assert.strictEqual(dotnetSlnAdd.status, 0); + asserts.equal(dotnetSlnAdd.status, 0); // Build the solution, run the tests and generate the NuGet packages let build; @@ -209,7 +210,7 @@ describe('aspnet-oauth:app', () => { if (build.status !== 0 && build.output) { console.error(build.output.toString('utf8')); } - assert.strictEqual(build.status, 0); + asserts.equal(build.status, 0); }); it('compiles the provider', async () => {