Skip to content

Commit

Permalink
Add code block
Browse files Browse the repository at this point in the history
  • Loading branch information
ollief87 committed Dec 13, 2023
1 parent 942a6a7 commit 9e9fcaa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions 01-Step01.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ Ask Copilot: "How do I create a new Next.js App?"

Notice that their are some options asked when creating the Next.js App, if you're unsure of what to select ask Copilot! I chose **No** to using the App Router, instead opting for the Page Router.

```ps
Would you like to use TypeScript? No / [Yes]
Would you like to use ESLint? No / [Yes]
Would you like to use Tailwind CSS? No / [Yes]
Would you like to use `src/` directory? No / [Yes]
Would you like to use App Router? (recommended) [No] / Yes
Would you like to customize the default import alias (@/*)? [No] / Yes
```

### What's a good project structure for Next.js?

Ask Copilot: "What's a good project structure for Next.js?"
Expand Down
4 changes: 2 additions & 2 deletions 06-Step06.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Alternatively you can run the same command `/tests` in Copilot Chat with the `mu
>}
> ```
> You might also get an error `Property 'toBeInTheDocument' does not exist on type 'JestMatchers<HTMLElement>'` in your tests, to resolve this add the following line to your `tsconfig.json` under `compilerOptions`:
> ```javascript
> ```js
>{
> "compilerOptions": {
> // ... other options
Expand All @@ -37,7 +37,7 @@ Alternatively you can run the same command `/tests` in Copilot Chat with the `mu
> It's also likely you will get an error `Cannot find module '@testing-library/jest-dom/extend-expect' from 'setupTests.js'`, change your `setupTests.js` to import `import '@testing-library/jest-dom';` instead of `@testing-library/jest-dom/extend-expect;`
>
> For Jest >28 jsdom is no longer included by default, run the command `npm install --save-dev jest-environment-jsdom` to install it then update your `jest.config.js` to set it as the test environment:
>```javascript
>```js
>module.exports = {
> testEnvironment: 'jsdom'
> // ... other options
Expand Down

0 comments on commit 9e9fcaa

Please sign in to comment.