mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
refactor(examples): pre-parse frontmatter via scripts/examplegen (#9514)
* refactor(examples): pre-parse frontmatter via scripts/examplegen This removes 2 MB from the slim binary. Ref: #9380
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
func TestTemplate(t *testing.T) {
|
||||
t.Parallel()
|
||||
list, err := examples.List()
|
||||
require.NoError(t, err)
|
||||
require.NoError(t, err, "error listing examples, run \"make gen\" to ensure examples are up to date")
|
||||
require.NotEmpty(t, list)
|
||||
for _, eg := range list {
|
||||
eg := eg
|
||||
|
||||
Reference in New Issue
Block a user