File tree Expand file tree Collapse file tree 5 files changed +22
-2
lines changed
Expand file tree Collapse file tree 5 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 11import chai , { expect } from 'chai' ;
22import fs from 'fs-extra' ;
33import * as path from 'path' ;
4+ import { fileURLToPath } from 'url' ;
5+ import { dirname } from 'path' ;
46import { Helper } from '@teambit/legacy.e2e-helper' ;
57import chaiFs from 'chai-fs' ;
68
79chai . use ( chaiFs ) ;
810
11+ const __filename = fileURLToPath ( import . meta. url ) ;
12+ const __dirname = dirname ( __filename ) ;
13+
914describe ( 'bit export command' , function ( ) {
1015 this . timeout ( 0 ) ;
1116 let helper : Helper ;
Original file line number Diff line number Diff line change 11import chai , { expect } from 'chai' ;
22import fs from 'fs-extra' ;
33import * as path from 'path' ;
4+ import { fileURLToPath } from 'url' ;
5+ import { dirname } from 'path' ;
46
57import { Helper } from '@teambit/legacy.e2e-helper' ;
68import chaiFs from 'chai-fs' ;
79chai . use ( chaiFs ) ;
810
11+ const __filename = fileURLToPath ( import . meta. url ) ;
12+ const __dirname = dirname ( __filename ) ;
13+
914describe ( 'big text file' , function ( ) {
1015 this . timeout ( 0 ) ;
1116 let helper : Helper ;
Original file line number Diff line number Diff line change 11import chai , { expect } from 'chai' ;
22import fs from 'fs-extra' ;
33import * as path from 'path' ;
4+ import { fileURLToPath } from 'url' ;
5+ import { dirname } from 'path' ;
46import { Helper } from '@teambit/legacy.e2e-helper' ;
57import chaiFs from 'chai-fs' ;
68chai . use ( chaiFs ) ;
79
10+ const __filename = fileURLToPath ( import . meta. url ) ;
11+ const __dirname = dirname ( __filename ) ;
12+
813describe ( 'binary files' , function ( ) {
914 this . timeout ( 0 ) ;
1015 let helper : Helper ;
Original file line number Diff line number Diff line change 11import chai , { expect } from 'chai' ;
2- import * as _ from 'lodash' ;
2+ import _ from 'lodash' ;
33import { Helper } from '@teambit/legacy.e2e-helper' ;
44import chaiFs from 'chai-fs' ;
55chai . use ( chaiFs ) ;
Original file line number Diff line number Diff line change 22
33import fs from 'fs-extra' ;
44import path from 'path' ;
5+ import { fileURLToPath } from 'url' ;
6+ import { dirname } from 'path' ;
57import { expect } from 'chai' ;
68import { Helper } from '@teambit/legacy.e2e-helper' ;
7- import * as _ from 'lodash' ;
9+ import _ from 'lodash' ;
10+
11+ const __filename = fileURLToPath ( import . meta. url ) ;
12+ const __dirname = dirname ( __filename ) ;
813
914const MAX_FILES_READ = 1050 ;
1015const MAX_FILES_READ_STATUS = 1500 ;
You can’t perform that action at this time.
0 commit comments