fix: correct --offline ternary in blockPackageJson #1106
Annotations
4 errors and 1 warning
Run pnpm run test --coverage:
src/steps/writing/creation/index.test.ts#L284
AssertionError: expected { …(3) } to deeply equal { …(3) }
- Expected
+ Received
Object {
"eslint.config.js": "import comments from \"@eslint-community/eslint-plugin-eslint-comments/configs\";
import eslint from \"@eslint/js\";
import vitest from \"@vitest/eslint-plugin\";
import jsdoc from \"eslint-plugin-jsdoc\";
import jsonc from \"eslint-plugin-jsonc\";
import markdown from \"eslint-plugin-markdown\";
import n from \"eslint-plugin-n\";
import packageJson from \"eslint-plugin-package-json/configs/recommended\";
import perfectionist from \"eslint-plugin-perfectionist\";
import * as regexp from \"eslint-plugin-regexp\";
import yml from \"eslint-plugin-yml\";
import tseslint from \"typescript-eslint\";
export default tseslint.config(
{
ignores: [\"**/*.snap\", \"coverage\", \"lib\", \"node_modules\", \"pnpm-lock.yaml\"],
},
{ linterOptions: { reportUnusedDisableDirectives: \"error\" } },
eslint.configs.recommended,
comments.recommended,
jsdoc.configs[\"flat/contents-typescript-error\"],
jsdoc.configs[\"flat/logical-typescript-error\"],
jsdoc.configs[\"flat/stylistic-typescript-error\"],
jsonc.configs[\"flat/recommended-with-json\"],
markdown.configs.recommended,
n.configs[\"flat/recommended\"],
packageJson,
perfectionist.configs[\"recommended-natural\"],
regexp.configs[\"flat/recommended\"],
{
extends: [
tseslint.configs.strictTypeChecked,
tseslint.configs.stylisticTypeChecked,
],
files: [\"**/*.js\", \"**/*.ts\"],
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: [\"*.config.*s\", \"bin/index.js\"],
},
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
// Stylistic concerns that don't interfere with Prettier
\"logical-assignment-operators\": [
\"error\",
\"always\",
{ enforceForIfStatements: true },
],
\"no-useless-rename\": \"error\",
\"object-shorthand\": \"error\",
\"operator-assignment\": \"error\",
},
settings: { perfectionist: { partitionByComment: true, type: \"natural\" } },
},
- {
- extends: [tseslint.configs.disableTypeChecked],
- files: [\"**/*.md/*.ts\"],
- rules: {
- \"n/no-missing-import\": [\"error\", { allowModules: [\"test-repo\"] }],
- },
- },
+ { extends: [tseslint.configs.disableTypeChecked], files: [\"**/*.md/*.ts\"] },
{
extends: [vitest.configs.recommended],
files: [\"**/*.test.*\"],
rules: { \"@typescript-eslint/no-unsafe-assignment\": \"off\" },
},
{
extends: [yml.configs[\"flat/recommended\"], yml.configs[\"flat/prettier\"]],
files: [\"**/*.{yml,yaml}\"],
rules: {
\"yml/file-extension\": [\"error\", { extension: \"yml\" }],
\"yml/sort-keys\": [
\"error\",
{ order: { type: \"asc\" }, pathPattern: \"^.*$\" },
],
\"yml/sort-sequence-values\": [
\"error\",
{ order: { type: \"asc\" }, pathPattern: \"^.*$\" },
],
},
},
);
",
"knip.json": "{
\"$schema\": \"https://unpkg.com/knip@5.41.1/schema.json\",
- \"entry\": [\"src/index.ts\"],
+ \"entry\": [\"src/index.ts\", \"src/**/*.test.*\"],
\"ignoreExportsUsedInFile\": { \"interface\": true, \"type\": true },
\"project\": [\"src/**/*.ts\"]
}
",
"package.json": "{
\"name\": \"test-repo\",
\"version\": \"2.0.0-beta.6\",
\"description\": \"Test Description\",
\"keywords\": [
\"test\",
\"keywords\"
],
\"repository\": {
\"type\": \"git\",
\"url\": \"git+https://github.com/Test Owner/test-repo.git\"
},
\"license\": \"MIT\",
\"author\": {
\"name\": \"Test Author\",
\"email\": \"npm@example.com\"
},
\"type\": \"module\",
\"main\": \"lib/index.js\",
\"bin\": \"bin/index.js\",
\"files\": [
\"LICENSE.md\",
\"README.md\",
\"bin/index.js\",
\"lib/\",
\"package.json\"
],
\"scripts\": {
\"build\": \"tsup\",
\"format\": \"prettier .\",
\"initialize\": \"pnpm build --no-dts && tsx bin/index.js --mode initialize
|
Run pnpm run test --coverage:
src/steps/writing/creation/index.test.ts#L284
AssertionError: expected { …(3) } to deeply equal { …(3) }
- Expected
+ Received
Object {
"eslint.config.js": "import comments from \"@eslint-community/eslint-plugin-eslint-comments/configs\";
import eslint from \"@eslint/js\";
import vitest from \"@vitest/eslint-plugin\";
import jsdoc from \"eslint-plugin-jsdoc\";
import jsonc from \"eslint-plugin-jsonc\";
import markdown from \"eslint-plugin-markdown\";
import n from \"eslint-plugin-n\";
import packageJson from \"eslint-plugin-package-json/configs/recommended\";
import perfectionist from \"eslint-plugin-perfectionist\";
import * as regexp from \"eslint-plugin-regexp\";
import yml from \"eslint-plugin-yml\";
import tseslint from \"typescript-eslint\";
export default tseslint.config(
{
ignores: [\"**/*.snap\", \"coverage\", \"lib\", \"node_modules\", \"pnpm-lock.yaml\"],
},
{ linterOptions: { reportUnusedDisableDirectives: \"error\" } },
eslint.configs.recommended,
comments.recommended,
jsdoc.configs[\"flat/contents-typescript-error\"],
jsdoc.configs[\"flat/logical-typescript-error\"],
jsdoc.configs[\"flat/stylistic-typescript-error\"],
jsonc.configs[\"flat/recommended-with-json\"],
markdown.configs.recommended,
n.configs[\"flat/recommended\"],
packageJson,
perfectionist.configs[\"recommended-natural\"],
regexp.configs[\"flat/recommended\"],
{
extends: [
tseslint.configs.strictTypeChecked,
tseslint.configs.stylisticTypeChecked,
],
files: [\"**/*.js\", \"**/*.ts\"],
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: [\"*.config.*s\", \"bin/index.js\"],
},
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
// Stylistic concerns that don't interfere with Prettier
\"logical-assignment-operators\": [
\"error\",
\"always\",
{ enforceForIfStatements: true },
],
\"no-useless-rename\": \"error\",
\"object-shorthand\": \"error\",
\"operator-assignment\": \"error\",
},
settings: { perfectionist: { partitionByComment: true, type: \"natural\" } },
},
- {
- extends: [tseslint.configs.disableTypeChecked],
- files: [\"**/*.md/*.ts\"],
- rules: {
- \"n/no-missing-import\": [\"error\", { allowModules: [\"test-repo\"] }],
- },
- },
+ { extends: [tseslint.configs.disableTypeChecked], files: [\"**/*.md/*.ts\"] },
{
extends: [vitest.configs.recommended],
files: [\"**/*.test.*\"],
rules: { \"@typescript-eslint/no-unsafe-assignment\": \"off\" },
},
{
extends: [yml.configs[\"flat/recommended\"], yml.configs[\"flat/prettier\"]],
files: [\"**/*.{yml,yaml}\"],
rules: {
\"yml/file-extension\": [\"error\", { extension: \"yml\" }],
\"yml/sort-keys\": [
\"error\",
{ order: { type: \"asc\" }, pathPattern: \"^.*$\" },
],
\"yml/sort-sequence-values\": [
\"error\",
{ order: { type: \"asc\" }, pathPattern: \"^.*$\" },
],
},
},
);
",
"knip.json": "{
\"$schema\": \"https://unpkg.com/knip@5.41.1/schema.json\",
- \"entry\": [\"src/index.ts\"],
+ \"entry\": [\"src/index.ts\", \"src/**/*.test.*\"],
\"ignoreExportsUsedInFile\": { \"interface\": true, \"type\": true },
\"project\": [\"src/**/*.ts\"]
}
",
"package.json": "{
\"name\": \"test-repo\",
\"version\": \"2.0.0-beta.6\",
\"description\": \"Test Description\",
\"keywords\": [
\"test\",
\"keywords\"
],
\"repository\": {
\"type\": \"git\",
\"url\": \"git+https://github.com/Test Owner/test-repo.git\"
},
\"license\": \"MIT\",
\"author\": {
\"name\": \"Test Author\",
\"email\": \"npm@example.com\"
},
\"type\": \"module\",
\"main\": \"lib/index.js\",
\"bin\": \"bin/index.js\",
\"files\": [
\"LICENSE.md\",
\"README.md\",
\"bin/index.js\",
\"lib/\",
\"package.json\"
],
\"scripts\": {
\"build\": \"tsup\",
\"format\": \"prettier .\",
\"initialize\": \"pnpm build --no-dts && tsx bin/index.js --mode initialize
|
Run pnpm run test --coverage:
src/steps/writing/creation/index.test.ts#L284
AssertionError: expected { …(3) } to deeply equal { …(3) }
- Expected
+ Received
Object {
"eslint.config.js": "import comments from \"@eslint-community/eslint-plugin-eslint-comments/configs\";
import eslint from \"@eslint/js\";
import vitest from \"@vitest/eslint-plugin\";
import jsdoc from \"eslint-plugin-jsdoc\";
import jsonc from \"eslint-plugin-jsonc\";
import markdown from \"eslint-plugin-markdown\";
import n from \"eslint-plugin-n\";
import packageJson from \"eslint-plugin-package-json/configs/recommended\";
import perfectionist from \"eslint-plugin-perfectionist\";
import * as regexp from \"eslint-plugin-regexp\";
import yml from \"eslint-plugin-yml\";
import tseslint from \"typescript-eslint\";
export default tseslint.config(
{
ignores: [\"**/*.snap\", \"coverage\", \"lib\", \"node_modules\", \"pnpm-lock.yaml\"],
},
{ linterOptions: { reportUnusedDisableDirectives: \"error\" } },
eslint.configs.recommended,
comments.recommended,
jsdoc.configs[\"flat/contents-typescript-error\"],
jsdoc.configs[\"flat/logical-typescript-error\"],
jsdoc.configs[\"flat/stylistic-typescript-error\"],
jsonc.configs[\"flat/recommended-with-json\"],
markdown.configs.recommended,
n.configs[\"flat/recommended\"],
packageJson,
perfectionist.configs[\"recommended-natural\"],
regexp.configs[\"flat/recommended\"],
{
extends: [
tseslint.configs.strictTypeChecked,
tseslint.configs.stylisticTypeChecked,
],
files: [\"**/*.js\", \"**/*.ts\"],
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: [\"*.config.*s\", \"bin/index.js\"],
},
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
// Stylistic concerns that don't interfere with Prettier
\"logical-assignment-operators\": [
\"error\",
\"always\",
{ enforceForIfStatements: true },
],
\"no-useless-rename\": \"error\",
\"object-shorthand\": \"error\",
\"operator-assignment\": \"error\",
},
settings: { perfectionist: { partitionByComment: true, type: \"natural\" } },
},
- {
- extends: [tseslint.configs.disableTypeChecked],
- files: [\"**/*.md/*.ts\"],
- rules: {
- \"n/no-missing-import\": [\"error\", { allowModules: [\"test-repo\"] }],
- },
- },
+ { extends: [tseslint.configs.disableTypeChecked], files: [\"**/*.md/*.ts\"] },
{
extends: [vitest.configs.recommended],
files: [\"**/*.test.*\"],
rules: { \"@typescript-eslint/no-unsafe-assignment\": \"off\" },
},
{
extends: [yml.configs[\"flat/recommended\"], yml.configs[\"flat/prettier\"]],
files: [\"**/*.{yml,yaml}\"],
rules: {
\"yml/file-extension\": [\"error\", { extension: \"yml\" }],
\"yml/sort-keys\": [
\"error\",
{ order: { type: \"asc\" }, pathPattern: \"^.*$\" },
],
\"yml/sort-sequence-values\": [
\"error\",
{ order: { type: \"asc\" }, pathPattern: \"^.*$\" },
],
},
},
);
",
"knip.json": "{
\"$schema\": \"https://unpkg.com/knip@5.41.1/schema.json\",
- \"entry\": [\"src/index.ts\"],
+ \"entry\": [\"src/index.ts\", \"src/**/*.test.*\"],
\"ignoreExportsUsedInFile\": { \"interface\": true, \"type\": true },
\"project\": [\"src/**/*.ts\"]
}
",
"package.json": "{
\"name\": \"test-repo\",
\"version\": \"2.0.0-beta.6\",
\"description\": \"Test Description\",
\"keywords\": [
\"test\",
\"keywords\"
],
\"repository\": {
\"type\": \"git\",
\"url\": \"git+https://github.com/Test Owner/test-repo.git\"
},
\"license\": \"MIT\",
\"author\": {
\"name\": \"Test Author\",
\"email\": \"npm@example.com\"
},
\"type\": \"module\",
\"main\": \"lib/index.js\",
\"bin\": \"bin/index.js\",
\"files\": [
\"LICENSE.md\",
\"README.md\",
\"bin/index.js\",
\"lib/\",
\"package.json\"
],
\"scripts\": {
\"build\": \"tsup\",
\"format\": \"prettier .\",
\"initialize\": \"pnpm build --no-dts && tsx bin/index.js --mode initialize
|
Run pnpm run test --coverage
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading