Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 38b3ba7

Browse files
author
scottbommarito
committed
typings inside test, devdependencies
1 parent ce6ac09 commit 38b3ba7

15 files changed

+11
-1089
lines changed

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ gulp.task("compile-test", function () {
111111
var ts = require("gulp-typescript");
112112
var insert = require("gulp-insert");
113113

114-
return gulp.src([testPath + tsFiles])
114+
return gulp.src([testPath + "/test.ts"])
115115
.pipe(ts(tsCompileOptions))
116116
.pipe(insert.prepend(compiledSourceWarningMessage))
117117
.pipe(gulp.dest(path.join(binPath, testPath)));
@@ -158,7 +158,7 @@ gulp.task("tslint", function () {
158158
}
159159
}
160160

161-
return gulp.src([testPath + tsFiles])
161+
return gulp.src([testPath + tsFiles, "!" + testPath + "/typings/*"])
162162
.pipe(tslint({ configuration: config }))
163163
.pipe(tslint.report("verbose"));
164164
});

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
"url": "https://github.com/Microsoft/react-native-code-push"
1818
},
1919
"dependencies": {
20+
"code-push": "1.8.0-beta"
21+
},
22+
"devDependencies": {
2023
"archiver": "latest",
2124
"body-parser": "latest",
22-
"code-push": "1.8.0-beta",
2325
"del": "latest",
2426
"express": "latest",
2527
"gulp-typescript": "2.12.2",

test/test.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
/// <reference path="../typings/assert.d.ts" />
2-
/// <reference path="../typings/codePush.d.ts" />
1+
/// <reference path="./typings/assert.d.ts" />
32
/// <reference path="../node_modules/code-push-plugin-testing-framework/typings/code-push-plugin-testing-framework.d.ts" />
4-
/// <reference path="../typings/mocha.d.ts" />
5-
/// <reference path="../typings/mkdirp.d.ts" />
6-
/// <reference path="../typings/node.d.ts" />
7-
/// <reference path="../typings/q.d.ts" />
3+
/// <reference path="./typings/mocha.d.ts" />
4+
/// <reference path="./typings/mkdirp.d.ts" />
5+
/// <reference path="./typings/node.d.ts" />
6+
/// <reference path="./typings/q.d.ts" />
87

98
"use strict";
109

@@ -571,7 +570,7 @@ PluginTestingFramework.initializeTests(new RNProjectManager(), supportedTargetPl
571570
try {
572571
assert.equal(requestBody.message, ServerUtil.TestMessage.CHECK_UPDATE_AVAILABLE);
573572
assert.notEqual(requestBody.args[0], null);
574-
var remotePackage: IRemotePackage = requestBody.args[0];
573+
var remotePackage: any = requestBody.args[0];
575574
assert.equal(remotePackage.downloadUrl, updateResponse.downloadURL);
576575
assert.equal(remotePackage.isMandatory, updateResponse.isMandatory);
577576
assert.equal(remotePackage.label, updateResponse.label);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)