Skip to content

Commit

Permalink
add tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemh committed Jun 23, 2024
1 parent 432ff29 commit f7e7e5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion cypress/e2e/faq.spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ describe('faq', () => {

it('reveals text after clicking "SHOW"', () => {
cy.findByTestId(ACCORDION_CONTENT).should('not.exist');
// @ts-expect-error - This seems to be incorrect 🤷🏼‍♂️
cy.findAllByTestId(ACCORDION_TOGGLE_BUTTON).then(([firstButton]) => firstButton.click());
cy.findAllByTestId(ACCORDION_CONTENT).should('be.visible');
});
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/hashlink.spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ describe('Hash Links', () => {

cy.findAllByTestId(HERO_BANNER_H1).should('be.visible');

// @ts-expect-error - This seems to be incorrect 🤷🏼‍♂️
cy.findAllByTestId('Hash Link').each(([link]) => {
// @ts-expect-error - This seems to be incorrect 🤷🏼‍♂️
const { hash } = link;

cy.get(hash).scrollIntoView();
Expand Down Expand Up @@ -39,8 +39,8 @@ describe('Hash Links', () => {
cy.visitAndWaitFor(path);
cy.viewport('iphone-6');

// @ts-expect-error - This seems to be incorrect 🤷🏼‍♂️
cy.findAllByTestId('Hash Link').each(([link]) => {
// @ts-expect-error - This seems to be incorrect 🤷🏼‍♂️
const { hash } = link;

cy.get(hash).should('not.be.visible');
Expand Down
2 changes: 1 addition & 1 deletion cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": "./",
"baseUrl": "../",
"types": ["cypress", "node", "@testing-library/cypress"],
"target": "esnext",
"lib": ["dom", "dom.iterable", "esnext"]
Expand Down

0 comments on commit f7e7e5e

Please sign in to comment.