build: remove fs-extra devdep (#42708)
* build: remove fs-extra dependency from script/gen-filenames.ts * build: remove fs-extra dependency from script/spec-runner.js * build: remove fs-extra dependency from script/gn-asar.js * build: remove fs-extra dependency from spec/api-autoupdater-darwin-spec.ts * build: remove fs-extra dependency from spec/api-safe-storage-spec.ts * build: remove fs-extra dependency from spec/lib/codesign-helpers.ts * build: remove fs-extra dependency from spec/api-app-spec.ts * build: remove fs-extra dependency from spec/esm-spec.ts * build: remove fs-extra dependency from spec/lib/fs-helpers.ts * build: remove fs-extra dependency from spec/lib/api-shell-spec.ts * build: remove fs-extra dependency from spec/api-context-bridge-spec.ts * build: remove fs-extra dependency from spec/asar-integrity-spec.ts * build: remove fs-extra dependency from spec/node-spec.ts * build: remove fs-extra devdiv * fixup! build: remove fs-extra dependency from spec/api-context-bridge-spec.ts * fix: use force: true when removing directories * chore: reduce diffs to main Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
2c3a9fd3c5
commit
e480e29cfc
15 changed files with 55 additions and 80 deletions
|
@ -3,7 +3,7 @@ import * as cp from 'node:child_process';
|
|||
import * as https from 'node:https';
|
||||
import * as http from 'node:http';
|
||||
import * as net from 'node:net';
|
||||
import * as fs from 'fs-extra';
|
||||
import * as fs from 'node:fs';
|
||||
import * as path from 'node:path';
|
||||
import { promisify } from 'node:util';
|
||||
import { app, BrowserWindow, Menu, session, net as electronNet, WebContents, utilityProcess } from 'electron/main';
|
||||
|
@ -1118,7 +1118,7 @@ describe('app module', () => {
|
|||
|
||||
describe('sessionData', () => {
|
||||
const appPath = path.join(__dirname, 'fixtures', 'apps', 'set-path');
|
||||
const appName = fs.readJsonSync(path.join(appPath, 'package.json')).name;
|
||||
const appName = JSON.parse(fs.readFileSync(path.join(appPath, 'package.json'), 'utf8')).name;
|
||||
const userDataPath = path.join(app.getPath('appData'), appName);
|
||||
const tempBrowserDataPath = path.join(app.getPath('temp'), appName);
|
||||
|
||||
|
@ -1139,8 +1139,8 @@ describe('app module', () => {
|
|||
};
|
||||
|
||||
beforeEach(() => {
|
||||
fs.removeSync(userDataPath);
|
||||
fs.removeSync(tempBrowserDataPath);
|
||||
fs.rmSync(userDataPath, { force: true, recursive: true });
|
||||
fs.rmSync(tempBrowserDataPath, { force: true, recursive: true });
|
||||
});
|
||||
|
||||
it('writes to userData by default', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue