Skip to content

Commit c5cf14f

Browse files
chore: fix integration test for latest bingo-stratum
1 parent 292b54b commit c5cf14f

File tree

4 files changed

+65
-63
lines changed

4 files changed

+65
-63
lines changed

Diff for: knip.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://unpkg.com/knip@5.44.1/schema.json",
2+
"$schema": "https://unpkg.com/knip@5.45.0/schema.json",
33
"entry": ["src/index.ts", "src/**/*.test.*"],
44
"ignoreDependencies": [
55
"all-contributors-cli",

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"dependencies": {
4040
"bingo": "^0.5.3",
4141
"bingo-fs": "^0.5.3",
42-
"bingo-stratum": "^0.5.3",
42+
"bingo-stratum": "^0.5.4",
4343
"cspell-populate-words": "^0.3.0",
4444
"execa": "^9.5.2",
4545
"git-remote-origin-url": "^4.0.0",

Diff for: pnpm-lock.yaml

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/integration.test.ts

+55-53
Original file line numberDiff line numberDiff line change
@@ -40,67 +40,69 @@ test("Producing the everything preset matches the files in this repository", asy
4040
})) as IntakeDirectory;
4141

4242
const created = producePreset(presets.everything, {
43-
addons: [
44-
blockCodecov({
45-
env: {
46-
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}",
47-
},
48-
}),
49-
blockCSpell({
50-
words: [
51-
"Anson",
52-
"apexskier",
53-
"dbaeumer",
54-
"joshuakgoldberg",
55-
"markdownlintignore",
56-
"mtfoley",
57-
"infile",
58-
"npmjs",
59-
],
60-
}),
61-
blockESLint({
62-
explanations: [
63-
`👋 Hi! This ESLint configuration contains a lot more stuff than many repos'!
43+
options: (await prepareOptions(base)) as BaseOptions,
44+
refinements: {
45+
addons: [
46+
blockCodecov({
47+
env: {
48+
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}",
49+
},
50+
}),
51+
blockCSpell({
52+
words: [
53+
"Anson",
54+
"apexskier",
55+
"dbaeumer",
56+
"joshuakgoldberg",
57+
"markdownlintignore",
58+
"mtfoley",
59+
"infile",
60+
"npmjs",
61+
],
62+
}),
63+
blockESLint({
64+
explanations: [
65+
`👋 Hi! This ESLint configuration contains a lot more stuff than many repos'!
6466
You can read from it to see all sorts of linting goodness, but don't worry -
6567
it's not something you need to exhaustively understand immediately. 💙
6668
6769
If you're interested in learning more, see the 'getting started' docs on:
6870
- ESLint: https://eslint.org
6971
- typescript-eslint: https://typescript-eslint.io`,
70-
],
71-
rules: [
72-
{
73-
comment:
74-
"These on-by-default rules work well for this repo if configured",
75-
entries: {
76-
"@typescript-eslint/prefer-nullish-coalescing": [
77-
"error",
78-
{ ignorePrimitives: true },
79-
],
80-
"@typescript-eslint/restrict-template-expressions": [
81-
"error",
82-
{ allowBoolean: true, allowNullish: true, allowNumber: true },
83-
],
72+
],
73+
rules: [
74+
{
75+
comment:
76+
"These on-by-default rules work well for this repo if configured",
77+
entries: {
78+
"@typescript-eslint/prefer-nullish-coalescing": [
79+
"error",
80+
{ ignorePrimitives: true },
81+
],
82+
"@typescript-eslint/restrict-template-expressions": [
83+
"error",
84+
{ allowBoolean: true, allowNullish: true, allowNumber: true },
85+
],
86+
},
8487
},
85-
},
86-
],
87-
}),
88-
blockKnip({
89-
ignoreDependencies: [
90-
"all-contributors-cli",
91-
"cspell-populate-words",
92-
"remove-dependencies",
93-
],
94-
}),
95-
blockTSup({
96-
runArgs: ["--version"],
97-
}),
98-
],
99-
blocks: {
100-
add: [blockAreTheTypesWrong],
101-
exclude: [blockTemplatedWith],
88+
],
89+
}),
90+
blockKnip({
91+
ignoreDependencies: [
92+
"all-contributors-cli",
93+
"cspell-populate-words",
94+
"remove-dependencies",
95+
],
96+
}),
97+
blockTSup({
98+
runArgs: ["--version"],
99+
}),
100+
],
101+
blocks: {
102+
add: [blockAreTheTypesWrong],
103+
exclude: [blockTemplatedWith],
104+
},
102105
},
103-
options: (await prepareOptions(base)) as BaseOptions,
104106
});
105107

106108
const processText = (text: string, filePath: string) =>

0 commit comments

Comments
 (0)