diff --git a/internal/config/.config_test/.top-level-entrypoints.yml b/internal/config/.config_test/.top-level-entrypoints.yml new file mode 100644 index 0000000..7be0d84 --- /dev/null +++ b/internal/config/.config_test/.top-level-entrypoints.yml @@ -0,0 +1,2 @@ +entrypoints: + - foo.ts diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 95e577d..f16bed5 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -100,6 +100,11 @@ func TestConfig_ErrorHandling(t *testing.T) { File: filepath.Join(testFolder, ".invalid.yml"), Expected: "not a valid yml file", }, + { + Name: "Entrypoints on top level", + File: filepath.Join(testFolder, ".top-level-entrypoints.yml"), + Expected: "not a valid yml file", + }, } for _, tt := range tests {