Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
petersalomonsen committed Jan 30, 2024
1 parent f1d379e commit 20b02ce
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
22 changes: 11 additions & 11 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"image": "mcr.microsoft.com/devcontainers/base:jammy",
"features": {
"ghcr.io/devcontainers/features/node:1": {}
},
"customizations": {
"vscode": {
"extensions": ["ms-playwright.playwright"]
}
},
"postCreateCommand": ".devcontainer/post-create.sh"
}
"image": "mcr.microsoft.com/devcontainers/base:jammy",
"features": {
"ghcr.io/devcontainers/features/node:1": {}
},
"customizations": {
"vscode": {
"extensions": ["ms-playwright.playwright"]
}
},
"postCreateCommand": ".devcontainer/post-create.sh"
}
1 change: 1 addition & 0 deletions .github/workflows/continuous-integration-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
- name: Install dependencies
run: |
npm ci
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mpeterdev/bos-loader/releases/download/v0.7.1/bos-loader-v0.7.1-installer.sh | sh
npx playwright install-deps
npx playwright install
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"tsc-files": "^1.1.4",
"@playwright/test": "^1.41.1",
"near-bos-webcomponent": "^0.0.2",
"http-server":"^14.1.1"
"http-server": "^14.1.1"
},
"scripts": {
"fmt": "prettier --write '**/*.{js,jsx,ts,tsx,json}'",
Expand Down
4 changes: 2 additions & 2 deletions playwright-tests/tests/hello.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test, expect } from "@playwright/test";

test("should go to trustees dashboard", async ({ page }) => {
await page.goto("/devhub.near/widget/trusteesdashboard");
expect(await page.getByText('hello').textContent()).toBe('hello');
await page.goto("/devhub.near/widget/trusteesdashboard");
expect(await page.getByText("hello").textContent()).toBe("hello");
});
2 changes: 1 addition & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ export default defineConfig({
port: 3030,
reuseExistingServer: !process.env.CI,
},
});
});
14 changes: 7 additions & 7 deletions scripts/dev-gateway.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
// startServer.mjs
import httpServer from 'http-server';
import path from 'path';
import { spawn } from 'child_process';
import httpServer from "http-server";
import path from "path";
import { spawn } from "child_process";

// Start the HTTP server
const server = httpServer.createServer({
root: path.join(process.cwd(), 'node_modules/near-bos-webcomponent/dist/')
root: path.join(process.cwd(), "node_modules/near-bos-webcomponent/dist/"),
});

server.listen(8080, () => {
console.log('HTTP server is listening on port 8080');
console.log("HTTP server is listening on port 8080");
});

// Start the 'npm run dev' process
const npmRunDev = spawn('npm', ['run', 'dev'], { stdio: 'inherit' });
const npmRunDev = spawn("npm", ["run", "dev"], { stdio: "inherit" });

npmRunDev.on('close', (code) => {
npmRunDev.on("close", (code) => {
console.log(`npm run dev process exited with code ${code}`);
});
3 changes: 1 addition & 2 deletions src/components/pages/homepage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ interface Props {
export default function (props: Props, context: BosContext) {
return (
<>
<h1>
</h1>
<h1></h1>
</>
);
}
2 changes: 1 addition & 1 deletion src/trusteesdashboard.jsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return <>hello</>;
return <>hello</>;

0 comments on commit 20b02ce

Please sign in to comment.