nukeop/nuclear

View on GitHub
packages/core/__mocks__/electron.ts

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = {
  app: {
    getPath: () => { }
  },
  remote: {
    transformSource: () => { },
    app: {
      getPath: () => { }
    },
    dialog: {
      showOpenDialog: jest.fn(async () => Promise.resolve({
        canceled: false,
        filePaths: ['test file.txt']
      }))
    }
  }
};