rename from ts to tsx in pkg and pkg-lib
Summary: mass rename files Reviewed By: passy Differential Revision: D33890034 fbshipit-source-id: 1c654a4f7f5b83eaa56a8c11df863003e8d7bed7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
844728d9dc
commit
48d43c7367
@@ -88,7 +88,7 @@ describe('getWatchFolders', () => {
|
|||||||
throw new Error('File not found: ' + file);
|
throw new Error('File not found: ' + file);
|
||||||
}
|
}
|
||||||
const parts = file.substring(rootDir.length + 1).split(path.sep);
|
const parts = file.substring(rootDir.length + 1).split(path.sep);
|
||||||
let cur = <any>files[rootDir];
|
let cur = files[rootDir] as any;
|
||||||
for (const part of parts) {
|
for (const part of parts) {
|
||||||
cur = cur[part];
|
cur = cur[part];
|
||||||
if (!cur) {
|
if (!cur) {
|
||||||
@@ -99,7 +99,7 @@ describe('getWatchFolders', () => {
|
|||||||
};
|
};
|
||||||
const readReadJson = fs.readJson;
|
const readReadJson = fs.readJson;
|
||||||
try {
|
try {
|
||||||
fs.readJson = <any>readJsonMock;
|
fs.readJson = readJsonMock as any;
|
||||||
const resolvedFolders = await getWatchFolders(
|
const resolvedFolders = await getWatchFolders(
|
||||||
path.join(rootDir, 'local_module_2'),
|
path.join(rootDir, 'local_module_2'),
|
||||||
);
|
);
|
||||||
Reference in New Issue
Block a user