-
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.
- Loading branch information
1 parent
f1d379e
commit 20b02ce
Showing
8 changed files
with
25 additions
and
25 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,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" | ||
} |
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
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,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"); | ||
}); |
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 |
---|---|---|
|
@@ -103,4 +103,4 @@ export default defineConfig({ | |
port: 3030, | ||
reuseExistingServer: !process.env.CI, | ||
}, | ||
}); | ||
}); |
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,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}`); | ||
}); |
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 +1 @@ | ||
return <>hello</>; | ||
return <>hello</>; |