Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix snapshot #590

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default defineConfig({
logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
},
exportStatic: {},
base: '/tree-select/',
publicPath: '/tree-select/',
base: '/',
publicPath: '/',
Comment on lines +10 to +11
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

需要更新文档中的旧路径引用。

在以下文件中仍存在对 /tree-select/ 的引用,需要确认是否需要更新:

  • tests/Select.multiple.spec.js
  • src/TreeSelect.tsx
  • README.md
  • CHANGELOG.md
🔗 Analysis chain

更改看起来符合预期,但请验证影响。

basepublicPath 的更改从 '/tree-select/' 到 '/' 看起来是有意为之的,并且与修复快照的 PR 目标一致。这种更改可能会影响站点的服务方式和资源的访问方式。

请运行以下脚本来验证这些更改的影响:

请确保运行相关的测试套件,特别是快照测试,以确保这些更改解决了问题且没有引入新的问题。

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# 描述:验证 base 和 publicPath 的更改对项目的影响

# 测试:检查是否有其他文件引用了旧的路径
echo "检查对 '/tree-select/' 的引用:"
rg '/tree-select/' --type ts --type js --type jsx --type tsx

# 测试:检查是否有使用 base 或 publicPath 的地方需要更新
echo "检查使用 base 或 publicPath 的地方:"
rg 'base:|publicPath:' --type ts --type js --type jsx --type tsx

# 测试:检查是否有需要更新的文档
echo "检查可能需要更新的文档:"
rg '/tree-select/' --type md

Length of output: 1248


Script:

#!/bin/bash
# 描述:验证 base 和 publicPath 的更改对项目的影响

# 测试:检查是否有其他文件引用了旧的路径
echo "检查对 '/tree-select/' 的引用:"
rg '/tree-select/' --type ts --type js --type tsx

# 测试:检查是否有使用 base 或 publicPath 的地方需要更新
echo "检查使用 base 或 publicPath 的地方:"
rg 'base:|publicPath:' --type ts --type js --type tsx

# 测试:检查是否有需要更新的文档
echo "检查可能需要更新的文档:"
rg '/tree-select/' --type md

Length of output: 1226


Script:

#!/bin/bash
# 描述:验证 base 和 publicPath 的更改对项目的影响

# 测试:检查是否有其他文件引用了旧的路径
echo "检查对 '/tree-select/' 的引用:"
rg '/tree-select/' -g "*.ts" -g "*.js" -g "*.tsx"

# 测试:检查是否有使用 base 或 publicPath 的地方需要更新
echo "检查使用 base 或 publicPath 的地方:"
rg 'base:|publicPath:' -g "*.ts" -g "*.js" -g "*.tsx"

# 测试:检查是否有需要更新的文档
echo "检查可能需要更新的文档:"
rg '/tree-select/' -g "*.md"

Length of output: 1454

styles: [
`
.markdown table {
Expand Down
Loading