(t *testing.T)
| 73 | } |
| 74 | |
| 75 | func TestDevelopMissingAction(t *testing.T) { |
| 76 | _, err := loader.LoadWithContext(context.TODO(), types.ConfigDetails{ |
| 77 | ConfigFiles: []types.ConfigFile{{Filename: "compose.yml", Content: []byte(` |
| 78 | name: test |
| 79 | services: |
| 80 | web: |
| 81 | image: app |
| 82 | build: ./app |
| 83 | develop: |
| 84 | watch: |
| 85 | - path: ./src |
| 86 | target: /app/src |
| 87 | `)}}, |
| 88 | Environment: map[string]string{}, |
| 89 | }, func(options *loader.Options) { |
| 90 | options.ResolvePaths = false |
| 91 | }) |
| 92 | assert.ErrorContains(t, err, "services.web.develop.watch.0 missing property 'action'") |
| 93 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…