Skip to content

Commit cfa7a24

Browse files
committed
chore(registry/coder/modules/coder-utils): bump to v2.0.0 and reformat test
- README: set the usage example version to 2.0.0. The previous value was a placeholder. - main.test.ts: prettier-format the imports and expect line.
1 parent 839e015 commit cfa7a24

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

registry/coder/modules/coder-utils/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The Coder Utils module is a building block for modules that need to run multiple
1616
```tf
1717
module "coder_utils" {
1818
source = "registry.coder.com/coder/coder-utils/coder"
19-
version = "0.0.1"
19+
version = "2.0.0"
2020
2121
agent_id = coder_agent.main.id
2222
module_directory = "$HOME/.coder-modules/coder/claude-code"
@@ -65,7 +65,7 @@ By default each `coder_script` renders in the Coder UI as plain "Install Script"
6565
```tf
6666
module "coder_utils" {
6767
source = "registry.coder.com/coder/coder-utils/coder"
68-
version = "0.0.1"
68+
version = "2.0.0"
6969
7070
agent_id = coder_agent.main.id
7171
module_directory = "$HOME/.coder-modules/coder/claude-code"

registry/coder/modules/coder-utils/main.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import { describe, expect, it } from "bun:test";
2-
import { runTerraformApply, runTerraformInit, testRequiredVariables } from "~test";
2+
import {
3+
runTerraformApply,
4+
runTerraformInit,
5+
testRequiredVariables,
6+
} from "~test";
37

48
describe("coder-utils", async () => {
59
await runTerraformInit(import.meta.dir);
@@ -22,9 +26,7 @@ describe("coder-utils", async () => {
2226
throw new Error("Unknown error generated");
2327
}
2428

25-
expect(ex.message).toContain(
26-
"module_directory must match the pattern",
27-
);
29+
expect(ex.message).toContain("module_directory must match the pattern");
2830
expect(ex.message).toContain(
2931
"'$HOME/.coder-modules/<namespace>/<module-name>'",
3032
);

0 commit comments

Comments
 (0)