Skip to content

Commit

Permalink
chore: fix test without build
Browse files Browse the repository at this point in the history
  • Loading branch information
embbnux committed Oct 23, 2023
1 parent b4309a1 commit 29ef8b5
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"version": "0.0.0"
"version": "0.0.0",
"useWorkspaces": true
}
4 changes: 4 additions & 0 deletions subscriptions-deprecated/jest.setup.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// setup file

if (process.env.JEST_ENV === 'node') {
require('@ringcentral/sdk/src/index.ts');
}
5 changes: 3 additions & 2 deletions subscriptions-deprecated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"scripts": {
"clean": "rimraf dist/* lib/* es6/* coverage/* .nyc_output .rpt2_cache",
"test": "npm run jest",
"test:coverage": "jest --coverage",
"jest": "jest",
"test:coverage": "JEST_ENV=node jest --coverage",
"jest": "JEST_ENV=node jest",
"jest:browser": "JEST_ENV=jsdom jest",
"build": "npm run clean && npm run build:tsc:es5 && npm run build:tsc:es6 && npm run build:webpack",
"build:tsc:es5": "tsc",
"build:tsc:es6": "tsc --project tsconfig.es6.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {asyncTest, expect} from '@ringcentral/sdk/lib/test/test';
import {asyncTest, expect} from '@ringcentral/sdk/src/test/test';

import {createSubscriptions} from '../test/test';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {apiCall, asyncTest, expect, expectThrows} from '@ringcentral/sdk/lib/test/test';
import {apiCall, asyncTest, expect, expectThrows} from '@ringcentral/sdk/src/test/test';

import {createSubscriptions, subscribeGeneric} from '../test/test';

Expand Down
4 changes: 3 additions & 1 deletion subscriptions-deprecated/src/test/test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import {apiCall} from '@ringcentral/sdk/lib/test/test';
import PubNub from 'pubnub';

import {apiCall} from '@ringcentral/sdk/src/test/test';

import {Subscriptions} from '../Subscriptions';

class PubNubMock extends PubNub {
Expand Down

0 comments on commit 29ef8b5

Please sign in to comment.