mirror of https://github.com/webpack/webpack.git
21 lines
558 B
JavaScript
21 lines
558 B
JavaScript
|
import { readFileSync, writeFileSync as aaa } from 'fs'
|
||
|
import * as path from 'path'
|
||
|
import * as fs from 'fs'
|
||
|
|
||
|
const { writeFileSync = aaa } = {}
|
||
|
console.log({ writeFileSync });
|
||
|
|
||
|
|
||
|
{
|
||
|
const { writeFileSync = aaa } = {}
|
||
|
console.log({ writeFileSync });
|
||
|
}
|
||
|
|
||
|
it('should handle external modules with concatenation and caching', () => {
|
||
|
expect(typeof readFileSync).toBe('function');
|
||
|
const { writeFileSync = aaa } = {}
|
||
|
expect(typeof writeFileSync).toBe('function');
|
||
|
expect(typeof path.join).toBe('function');
|
||
|
});
|
||
|
|
||
|
export { readFileSync, writeFileSync, path, fs }
|