Skip to content

Commit

Permalink
use tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
charliewilco committed Apr 23, 2023
1 parent 5261671 commit 85b31ac
Show file tree
Hide file tree
Showing 125 changed files with 18,678 additions and 18,130 deletions.
20 changes: 10 additions & 10 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "Node.js & Mongo DB",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspace",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"extensions": ["mongodb.mongodb-vscode"],
"name": "Node.js & Mongo DB",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspace",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"extensions": ["mongodb.mongodb-vscode"],

"forwardPorts": [3000, 27017],
"remoteUser": "node"
"forwardPorts": [3000, 27017],
"remoteUser": "node"
}
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
VARIANT: 14
# On Linux, you may need to update USER_UID and USER_GID below if not your local UID is not 1000.
USER_UID: 1000
USER_GID: 1000
USER_GID: 100

volumes:
- ..:/workspace:cached
Expand Down
10 changes: 5 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"recommendations": [
"orta.vscode-jest",
"esbenp.prettier-vscode",
"graphql.vscode-graphql"
]
"recommendations": [
"orta.vscode-jest",
"esbenp.prettier-vscode",
"graphql.vscode-graphql"
]
}
60 changes: 30 additions & 30 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "vscode-edge-devtools.debug",
"request": "launch",
"name": "Launch Microsoft Edge and open the Edge DevTools",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"args": ["--runInBand"],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
},
{
"type": "node",
"request": "attach",
"name": "Launch Program",
"skipFiles": ["<node_internals>/**"],
"port": 9229
}
]
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "vscode-edge-devtools.debug",
"request": "launch",
"name": "Launch Microsoft Edge and open the Edge DevTools",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"args": ["--runInBand"],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
},
{
"type": "node",
"request": "attach",
"name": "Launch Program",
"skipFiles": ["<node_internals>/**"],
"port": 9229
}
]
}
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"jest.showCoverageOnLoad": true,
"jest.autoRun": "off",
"editor.defaultFormatter": "esbenp.prettier-vscode"
"jest.showCoverageOnLoad": true,
"jest.autoRun": "off",
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
42 changes: 21 additions & 21 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "TypeScript Errors",
"type": "shell",
"command": "./node_modules/.bin/tsc",
"isBackground": true,
"args": ["--watch", "--noEmit", "--project", "www"],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "never",
"echo": false,
"focus": false,
"panel": "dedicated"
},
"problemMatcher": "$tsc-watch"
}
]
"version": "2.0.0",
"tasks": [
{
"label": "TypeScript Errors",
"type": "shell",
"command": "./node_modules/.bin/tsc",
"isBackground": true,
"args": ["--watch", "--noEmit", "--project", "www"],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "never",
"echo": false,
"focus": false,
"panel": "dedicated"
},
"problemMatcher": "$tsc-watch"
}
]
}
10 changes: 5 additions & 5 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ Using Puppeteer I write assertions like this:

```js
describe("Feature", () => {
it("does this thing", async () => {
await page.waitForSelector("#selector");
await page.click("#selector");
await page.waitForSelector("#other-selector");
});
it("does this thing", async () => {
await page.waitForSelector("#selector");
await page.click("#selector");
await page.waitForSelector("#other-selector");
});
});
```

Expand Down
8 changes: 4 additions & 4 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
import bundleAnalyzer from "@next/bundle-analyzer";

const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === "true"
enabled: process.env.ANALYZE === "true"
});

/**
* @type {import('next').NextConfig}
*/
const config = {
reactStrictMode: true,
swcMinify: true,
cleanDistDir: true
reactStrictMode: true,
swcMinify: true,
cleanDistDir: true
};

export default withBundleAnalyzer(config);
Loading

0 comments on commit 85b31ac

Please sign in to comment.