Skip to content

Commit d987ace

Browse files
cyfung1031Copilot
andauthored
⬆️ 更新过时的 axios & webdav 包。webdav 代码同步至 MV3版本 (#1006)
* [MV2] 更新过时的 axios & webdav 包。webdav 代码同步至 MV3版本 * jest * Update jest.setup.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update rw.ts * Update rw.ts --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 18100d4 commit d987ace

7 files changed

Lines changed: 222 additions & 102 deletions

File tree

.eslintrc.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ module.exports = {
5858
"import/no-duplicates": "off",
5959
"import/prefer-default-export": "off",
6060
"no-plusplus": "off",
61+
"no-continue": "off",
62+
"no-return-await": "off",
6163
"prettier/prettier": "off",
6264
},
6365
settings: {

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ module.exports = {
1212
"\\.[jt]s$": "babel-jest",
1313
"\\.m[jt]s$": "babel-jest",
1414
},
15-
transformIgnorePatterns: ["node_modules/(?!(uuid|dexi|yaml))"],
15+
transformIgnorePatterns: ["node_modules/(?!(uuid|dexi|yaml|webdav))"],
16+
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
1617
setupFiles: ["./pkg/chrome-extension-mock/index.ts"],
1718
moduleDirectories: ["node_modules", "src"],
1819
watch: false,

jest.setup.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Define / mock your globals here
2+
global.fetch = () => {
3+
return Promise.reject(new Error("not implemented"));
4+
};

0 commit comments

Comments
 (0)