Skip to content

Commit

Permalink
test(cli): udpate info
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Aug 1, 2023
1 parent 29853fa commit 0083c96
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/taro-cli/src/__tests__/info.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ describe('info', () => {
expect('Binaries' in info).toBeTruthy()
// envinfo 还不支持 yarn workspace
// expect('npmPackages' in info).toBeTruthy()
// windows 操作系统可能不存在 System.Shell
expect(Object.keys(info.System)).toContain('OS')
expect(Object.keys(info.Binaries)).toEqual(['Node', 'Yarn', 'npm'])
// Note: windows 操作系统可能不存在 System.Shell
expect(Object.keys(info.System)).toEqual(expect.arrayContaining(['OS']))
// Note: 环境内可能不包括 Yarn
expect(Object.keys(info.Binaries)).toEqual(expect.arrayContaining(['Node', 'npm']))
// expect(info.npmPackages.hasOwnProperty('@tarojs/helper')).toBeTruthy()
// expect(info.npmPackages.hasOwnProperty('@tarojs/mini-runner')).toBeTruthy()
// expect(info.npmPackages.hasOwnProperty('@tarojs/service')).toBeTruthy()
Expand Down

0 comments on commit 0083c96

Please sign in to comment.