meteor: inline test module augmentations (#40667)

This makes the test file structure more similar to other DT tests.
This commit is contained in:
Nathan Shively-Sanders
2019-11-26 09:00:35 -08:00
committed by GitHub
parent c69f7bc333
commit 275ab65da8
4 changed files with 18 additions and 18 deletions
+8 -1
View File
@@ -11,6 +11,13 @@
/*********************************** Begin setup for tests ******************************/
declare namespace Meteor {
interface User {
// One of the tests assigns a new property to the user so it has to be typed
dexterity?: number;
}
}
// Avoid conflicts between `meteor-tests.ts` and `globals/meteor-tests.ts`.
namespace MeteorTests {
@@ -866,4 +873,4 @@ Meteor.absoluteUrl('/sub', {rootUrl: 'http://wonderful.com'});
Meteor.absoluteUrl.defaultOptions = {
rootUrl: 'http://123.com',
secure: false
};
};
+10 -1
View File
@@ -23,6 +23,15 @@ import { Accounts } from "meteor/accounts-base";
import { BrowserPolicy } from "meteor/browser-policy-common";
import { DDPRateLimiter } from "meteor/ddp-rate-limiter";
declare module 'meteor/meteor' {
namespace Meteor {
interface User {
// One of the tests assigns a new property to the user so it has to be typed
dexterity?: number;
}
}
}
// Avoid conflicts between `meteor-tests.ts` and `globals/meteor-tests.ts`.
namespace MeteorTests {
@@ -878,4 +887,4 @@ Meteor.absoluteUrl('/sub', {rootUrl: 'http://wonderful.com'});
Meteor.absoluteUrl.defaultOptions = {
rootUrl: 'http://123.com',
secure: false
};
};
-15
View File
@@ -1,15 +0,0 @@
declare module 'meteor/meteor' {
module Meteor {
interface User {
// One of the tests assigns a new property to the user so it has to be typed
dexterity?: number;
}
}
}
declare module Meteor {
interface User {
// One of the tests assigns a new property to the user so it has to be typed
dexterity?: number;
}
}
-1
View File
@@ -62,7 +62,6 @@
"index.d.ts",
"test/meteor-tests.ts",
"test/globals/meteor-tests.ts",
"test/userAugment.d.ts",
"test/meteor-tests-module-only.ts",
"test/server-render.tsx",
"react-meteor-data.d.ts",