mirror of
https://github.com/coder/registry.git
synced 2026-06-02 20:48:14 +00:00
45b72c7241
## Summary - Introduces Terraform native tests (`terraform test`) alongside existing Bun tests - Migrates tests for modules: jetbrains, zed, and code-server - Removes Bun test files for these migrated modules only - Adds repo-wide test runner script for Terraform tests - Updates docs and new-module sample to reflect Terraform tests ## Transition plan - Mixed mode: Other modules retain Bun tests; CI should run both Bun and Terraform tests temporarily - Follow the linked epic to migrate remaining modules ## Test plan - Run: `./scripts/terraform_test_all.sh` (passes locally) - Bun tests still available for non-migrated modules ## Affected paths - registry/coder/modules/jetbrains/jetbrains.tftest.hcl - registry/coder/modules/zed/zed.tftest.hcl - registry/coder/modules/code-server/code-server.tftest.hcl - scripts/terraform_test_all.sh - examples/modules/MODULE_NAME.tftest.hcl - CONTRIBUTING.md Contributes to #308
30 lines
857 B
JSON
30 lines
857 B
JSON
{
|
|
"name": "registry",
|
|
"scripts": {
|
|
"fmt": "bun x prettier --write **/*.sh **/*.ts **/*.md *.md && terraform fmt -recursive -diff",
|
|
"fmt:ci": "bun x prettier --check **/*.sh **/*.ts **/*.md *.md && terraform fmt -check -recursive -diff",
|
|
"terraform-validate": "./scripts/terraform_validate.sh",
|
|
"test": "./scripts/terraform_test_all.sh",
|
|
"update-version": "./update-version.sh"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.2.18",
|
|
"bun-types": "^1.2.18",
|
|
"dedent": "^1.6.0",
|
|
"gray-matter": "^4.0.3",
|
|
"marked": "^16.0.0",
|
|
"prettier": "^3.6.2",
|
|
"prettier-plugin-sh": "^0.18.0",
|
|
"prettier-plugin-terraform-formatter": "^1.2.1"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5.8.3"
|
|
},
|
|
"prettier": {
|
|
"plugins": [
|
|
"prettier-plugin-sh",
|
|
"prettier-plugin-terraform-formatter"
|
|
]
|
|
}
|
|
}
|