Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 3394f45

Browse files
committed
fix: update dependencies and update test
1 parent 8da4052 commit 3394f45

File tree

4 files changed

+1042
-206
lines changed

4 files changed

+1042
-206
lines changed

examples/browser-nuxtjs/nuxt.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export default {
2+
target: 'static',
23
// Global page headers: https://go.nuxtjs.dev/config-head
34
head: {
45
title: 'browser-nuxtjs',
@@ -38,9 +39,6 @@ export default {
3839

3940
// Build Configuration: https://go.nuxtjs.dev/config-build
4041
build: {
41-
// ! TODO: TO BE REMOVED
42-
// * For now it is needed to transpile "Optional chaining" from `ipfs-http-client`
43-
transpile: ['ipfs-http-client'],
4442
babel: {
4543
plugins: [
4644
['@babel/plugin-proposal-private-methods', { loose: true }],

examples/browser-nuxtjs/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,20 @@
1010
"build": "nuxt build",
1111
"start": "nuxt start",
1212
"generate": "nuxt generate",
13-
"test:example": "npm run generate && playwright test tests"
13+
"test": "npm run generate && playwright test tests"
1414
},
1515
"dependencies": {
1616
"core-js": "^3.15.1",
17-
"ipfs": "^0.56.1",
17+
"ipfs": "^0.58.1",
1818
"nuxt": "^2.15.7"
1919
},
2020
"devDependencies": {
2121
"@playwright/test": "^1.12.3",
2222
"playwright": "^1.12.3",
2323
"rimraf": "^3.0.2",
2424
"test-util-ipfs-example": "^1.0.2"
25+
},
26+
"workspaces": {
27+
"nohoist": ["**"]
2528
}
2629
}

examples/browser-nuxtjs/tests/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ play.describe('integrate ipfs with nuxtjs:', () => {
2121
play('should properly initialized a IPFS node and print some information about the node', async ({ page }) => {
2222
await page.waitForSelector(info)
2323

24-
expect(await page.textContent(id)).toContain("Qm");
24+
expect(await page.isVisible(id)).toBeTruthy();
2525
expect(await page.textContent(agent)).toContain("js-ipfs/");
2626
});
2727
});

0 commit comments

Comments
 (0)