Skip to content

Commit

Permalink
chore: cypress tests work again
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Jan 2, 2025
1 parent f36bedb commit 1ee6cef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"eslint-plugin-vue": "^9.32.0",
"husky": "^8.0.3",
"lint-staged": "^15.3.0",
"lowlight": "^3.3.0",
"minimist": "^1.2.8",
"pkg-pr-new": "0.0.32",
"tinyglobby": "0.2.10",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = on => {
globSync('../packages/*', { onlyDirectories: true })
.map(name => name.replace('../packages/', ''))
.forEach(name => {
alias[`@tiptap/${name}$`] = path.resolve(`../packages/${name}/src/index.ts`)
alias[`@tiptap/${name.split('/').slice(0, -1).join('/')}$`] = path.resolve(`../packages/${name}/src/index.ts`)
})

const options = {
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"types": ["cypress", "react", "react-dom"],
"paths": {
"@tiptap/*": ["packages/*/src", "packages/*/dist"],
"@tiptap/pm/*": ["../../pm/*/dist"]
"@tiptap/pm/*": ["packages/pm/*"]
},
"typeRoots": ["../../node_modules/@types", "../../node_modules/"],
},
Expand Down

0 comments on commit 1ee6cef

Please sign in to comment.