TestApi type not found

I was wondering where is TestApi defined? In server or base, my customer package doesn’t have a base dependency and it seems that I can’t see TestApi.

Here is the customer package:

{
  "name": "XXX",
  "description": "XXX"
}

When I provision with 7.9 server locally, I can’t do c3ShowType(TestApi)

1 Like

The TestApi type is defined in the testtools package in the server repository. Make sure you add testtools to your package’s dependencies (in its package.json) and also add a dependency on the server repository in your repository’s repository.json file.

Thanks Matt for your quick reply. Just wanted to move your answer in slack here. Here is the correct way to add the dependency.

{
  "name": "XXX",
  "description": "XXX",
  "dependencies": ["testtools"]
}
1 Like