How to use the openSync function from temp

Find comprehensive JavaScript temp.openSync code examples handpicked from public code repositorys.

313
314
315
316
317
318
319
320
321
  });
});

describe('when an editor is saved and the project has no path', () => {
  it("sets the project's path to the saved file's parent directory", () => {
    const tempFile = temp.openSync().path;
    atom.project.setPaths([]);
    expect(atom.project.getPaths()[0]).toBeUndefined();
    let editor = null;
fork icon0
star icon0
watch icon1