mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove symlink on extension install and manual runtime uninstall (#1718)
* Remove broken symlink on extension install Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com> * Remove broken symlink on manual uninstall during runtime Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
0facd34738
commit
d961d8b159
2 files changed
+41
-22
No files matched your search
@@ -18,7 +18,7 @@ const mockedWatch = watch as jest.MockedFunction<typeof watch>;
|
||||
|
||||
describe("ExtensionDiscovery", () => {
|
||||
it("emits add for added extension", async done => {
|
||||
globalThis.__non_webpack_require__.mockImplementationOnce(() => ({
|
||||
globalThis.__non_webpack_require__.mockImplementation(() => ({
|
||||
name: "my-extension"
|
||||
}));
|
||||
let addHandler: (filePath: string) => void;
|
||||
@@ -61,9 +61,6 @@ describe("ExtensionDiscovery", () => {
|
||||
});
|
||||
|
||||
it("doesn't emit add for added file under extension", async done => {
|
||||
globalThis.__non_webpack_require__.mockImplementationOnce(() => ({
|
||||
name: "my-extension"
|
||||
}));
|
||||
let addHandler: (filePath: string) => void;
|
||||
|
||||
const mockWatchInstance: any = {
|
||||
|
||||
Reference in new issue
Block a user