-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️ update all dependencies and fix E2E tests
- Loading branch information
Showing
13 changed files
with
107 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
bun run lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,37 @@ | ||
/* globals cy */ | ||
|
||
describe('Homepage', () => { | ||
beforeEach(() => cy.visit('/')); | ||
it('Pages Router - should display the count', () => { | ||
cy.visit('/pages-router') | ||
cy.get('#count').should('have.length', 1); | ||
}); | ||
|
||
it('Pages Router - should increase the count', () => { | ||
cy.visit('/pages-router') | ||
cy.get('#counter > button:last-child').click({ force: true }); | ||
cy.get('#count').should('contain', '1'); | ||
}); | ||
|
||
it('Pages Router - should decrease the count', () => { | ||
cy.visit('/pages-router') | ||
cy.get('#counter > button:first-child').click({ force: true }); | ||
cy.get('#count').should('contain', '-1'); | ||
}); | ||
|
||
it('should display the count', () => { | ||
cy.get('#counter > span').should('have.length', 1); | ||
it('App Router - should display the count', () => { | ||
cy.visit('/app-router') | ||
cy.get('#count').should('have.length', 1); | ||
}); | ||
|
||
it('should increase the count', () => { | ||
it('App Router - should increase the count', () => { | ||
cy.visit('/app-router') | ||
cy.get('#counter > button:last-child').click({ force: true }); | ||
cy.get('#counter > span').should('contain', '1'); | ||
cy.get('#count').should('contain', '1'); | ||
}); | ||
|
||
it('should decrease the count', () => { | ||
it('App Router - should decrease the count', () => { | ||
cy.visit('/app-router') | ||
cy.get('#counter > button:first-child').click({ force: true }); | ||
cy.get('#counter > span').should('contain', '-1'); | ||
cy.get('#count').should('contain', '-1'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
/// <reference types="next/navigation-types/compat/navigation" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react'; | ||
import Link from 'next/link'; | ||
|
||
import Layout from '@/components/Layout'; | ||
|
||
const Home: React.FC = () => ( | ||
<Layout> | ||
<div className="flex flex-col items-center justify-center w-full h-screen"> | ||
<h1 className="text-3xl font-bold">Pick your Router</h1> | ||
<ul className="list-disc list"> | ||
<li> | ||
<Link href="/pages-router" className="underline"> | ||
Pages Router | ||
</Link> | ||
</li> | ||
<li> | ||
<Link href="/app-router" className="underline"> | ||
App Router | ||
</Link> | ||
</li> | ||
</ul> | ||
</div> | ||
</Layout> | ||
); | ||
|
||
export default Home; |
File renamed without changes.