-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: convert API tests to node test #1498
Conversation
Codegen Tests439 tests - 20 423 ✅ ± 0 36s ⏱️ -2s Results for commit 733c9a7. ± Comparison against base commit 748621e. This pull request removes 20 tests.
♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questions and minor nits but LGTM
import { ApiConfigMap, boolDefault, defaultTimeout } from '@looker/sdk-rtl'; | ||
import { TestConfig } from '@looker/sdk-codegen-utils'; | ||
import { TestConfig } from '@looker/sdk-rtl/src/testUtils'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to reach into the package?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, unfortunately
@@ -423,11 +420,11 @@ describe('LookerNodeSDK integration tests', () => { | |||
}); | |||
|
|||
describe('User CRUD-it checks', () => { | |||
beforeAll(async () => { | |||
before(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gets run before every test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, that's the node test runner beforeAll
Convert tests that call the Looker API server to use node test runner
Test files renamed from
*.spec.ts
to*.apitest.ts
Only files with
.apitest
use the node test runner