func TestLoadComponentErrors(t *testing.T) {
    for _, example := range loadComponentsTestErrors {
        ws := NewWorkspace()
        actualErrors := ws.LoadComponents(example.dir)
        // Check that the actual error is the expected error