You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hu...@apache.org on 2021/08/04 09:52:05 UTC

[dubbo-js] branch master updated: fixed: test suite and make jest --no-cache

This is an automated email from the ASF dual-hosted git repository.

hufeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-js.git


The following commit(s) were added to refs/heads/master by this push:
     new eea12f8  fixed: test suite and make jest --no-cache
eea12f8 is described below

commit eea12f8907a12e0d480bef5db014c831941679d5
Author: hufeng <fe...@gmail.com>
AuthorDate: Wed Aug 4 17:51:43 2021 +0800

    fixed: test suite and make jest --no-cache
---
 .husky/pre-commit                                 | 2 +-
 packages/dubbo-service/src/__tests__/port-test.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.husky/pre-commit b/.husky/pre-commit
index e471140..c0368be 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -2,4 +2,4 @@
 . "$(dirname "$0")/_/husky.sh"
 
 npx pretty-quick --staged
-yarn test
\ No newline at end of file
+npx jest --no-cache
diff --git a/packages/dubbo-service/src/__tests__/port-test.ts b/packages/dubbo-service/src/__tests__/port-test.ts
index 932b8e6..ada474b 100644
--- a/packages/dubbo-service/src/__tests__/port-test.ts
+++ b/packages/dubbo-service/src/__tests__/port-test.ts
@@ -26,7 +26,7 @@ describe('port test suite', () => {
     const port = await portManager.getReusedPort()
     expect(port).toBeTruthy()
     expect(
-      fs.existsSync(path.join(process.cwd(), '.dubbojs/dubbo.lock'))
+      fs.existsSync(path.join(process.cwd(), '.dubbojs/dubbo'))
     ).toBeTruthy()
   })