Skip to content

Commit 84e82a1

Browse files
test(monorepo): use a plugin that has required plugin options
1 parent c96f09d commit 84e82a1

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
plugins:
2-
- @dotcom-tool-kit/hako
2+
- '@dotcom-tool-kit/docker'
33

4-
# deliberately missing task options to fail validation
4+
# deliberately missing plugin options to fail validation

plugins/monorepo/test/load-workspace-configs.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,21 @@ describe('LoadWorkspaceConfigs', () => {
3131
cwd: path.relative(process.cwd(), path.resolve(__dirname, './files/invalid'))
3232
})
3333
).rejects.toMatchInlineSnapshot(`
34-
AggregateError "1 error loading .toolkitrc.yml in workspace packages" {
34+
AggregateError "2 errors loading .toolkitrc.yml in workspace packages" {
3535
"errors": [
3636
"@monorepo-plugin-tests/b → ToolKitError" "There are options in your .toolkitrc.yml that aren't what Tool Kit expected." {
3737
"details": "Please update the options so that they are the expected types.
3838
! 2 issues in @dotcom-tool-kit/serverless:
3939
- Required at "awsAccountId"
4040
- Required at "systemCode"
4141
42+
You can refer to the README for the plugin for examples and descriptions of the options used.",
43+
},
44+
"@monorepo-plugin-tests/c → ToolKitError" "There are options in your .toolkitrc.yml that aren't what Tool Kit expected." {
45+
"details": "Please update the options so that they are the expected types.
46+
! 1 issue in @dotcom-tool-kit/docker:
47+
- Required at "images"
48+
4249
You can refer to the README for the plugin for examples and descriptions of the options used.",
4350
},
4451
],

0 commit comments

Comments
 (0)