Skip to content

Commit 2c6ea39

Browse files
committed
fix: bump madwizard to pick up relative path fixes
1 parent a41c8e3 commit 2c6ea39

File tree

3 files changed

+103
-5
lines changed

3 files changed

+103
-5
lines changed

package-lock.json

Lines changed: 98 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/plugin-madwizard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"access": "public"
2424
},
2525
"dependencies": {
26-
"madwizard": "^0.7.25"
26+
"madwizard": "^0.7.26"
2727
}
2828
}

tests/plugin-madwizard/plan/plan.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { join } from "path"
17+
import { join, relative } from "path"
1818

1919
import { test, expect } from "@playwright/test"
2020
import { Page, _electron as electron } from "playwright"
@@ -91,7 +91,9 @@ export default function doPlan(markdown: Input) {
9191
test(markdown.input, async () => {
9292
const page = await startElectron()
9393

94-
await page.keyboard.type(`plan ${join(__dirname, "../markdowns", markdown.input)}`)
94+
// the path.relative is not needed, but we are using it to test
95+
// that relative paths work
96+
await page.keyboard.type(`plan ${relative(process.cwd(), join(__dirname, "../markdowns", markdown.input))}`)
9597
await page.keyboard.press("Enter")
9698

9799
const tree = markdown.tree("guide")

0 commit comments

Comments
 (0)