Skip to content
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

ci: migrate unit tests #49

Merged
merged 2 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions tests/unit/specs/GraphiQLToolbar.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* @todo should this test live near the component it is testing?
*
* related: https://github.com/wp-graphql/wpgraphql-ide/issues/31
*/
describe('GraphiQL Toolbar', () => {

test('it should render', () => {})
test.skip('it should render with prettify button', () => {})

test.skip('filter to add button as the first toolbar button', () => {})
test.skip('filter to add button as the last toolbar button', () => {})
test.skip('filter to add button after the prettify button', () => {})
test.skip('filter to remove prettify button', () => {})
test.skip('filter remove all buttons except a custom button', () => {})

})
11 changes: 11 additions & 0 deletions tests/unit/specs/Help.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* @todo should this test live near the component it is testing?
*/
describe('GraphiQL Help Screen', () => {

test('it should render', () => {})
test.skip( 'absolute links should have target="_blank"', () => {})
test.skip( 'each card should have a title', () => {})
test.skip( 'each card should have an action', () => {})

})
Loading