feat(): separated private and public tests
This commit is contained in:
9
.github/workflows/e2etests.yml
vendored
9
.github/workflows/e2etests.yml
vendored
@@ -7,7 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: "Build & Test"
|
||||
name: "Build, Lint & Test"
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -32,8 +32,11 @@ jobs:
|
||||
- name: Check Lint
|
||||
run: npm run lint
|
||||
|
||||
- name: Test
|
||||
run: npm run test
|
||||
- name: Run Public Tests
|
||||
run: npm run test:public
|
||||
|
||||
- name: Run Private Tests
|
||||
run: npm run test:private
|
||||
env:
|
||||
API_KEY_COM: ${{ secrets.API_KEY_COM }}
|
||||
API_SECRET_COM: ${{ secrets.API_SECRET_COM }}
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
"test:public": "jest --testPathIgnorePatterns='.*private.*'",
|
||||
"test:private": "jest --testPathPattern='.*private.*'",
|
||||
"clean": "rm -rf lib dist",
|
||||
"build": "tsc",
|
||||
"build:clean": "npm run clean && npm run build",
|
||||
|
||||
@@ -90,7 +90,7 @@ describe.skip('Private Spot Websocket Client', () => {
|
||||
event: 'login',
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(`Wait for "books" subscription response exception: `, e);
|
||||
console.error('Wait for "books" subscription response exception: ', e);
|
||||
expect(e).toBeFalsy();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -50,7 +50,7 @@ describe('Public Spot Websocket Client', () => {
|
||||
wsKey: WS_KEY_MAP.spotv1,
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(`Wait for "books" subscription response exception: `, e);
|
||||
console.error('Wait for "books" subscription response exception: ', e);
|
||||
expect(e).toBeFalsy();
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ describe('Public Spot Websocket Client', () => {
|
||||
wsKey: 'spotv1',
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(`Wait for "books" event exception: `, e);
|
||||
console.error('Wait for "books" event exception: ', e);
|
||||
expect(e).toBeFalsy();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user