Skip to content

Commit

Permalink
Appveyor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Igmat committed Nov 4, 2016
1 parent 4e45b38 commit 9cb9244
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ environment:
# get the latest stable version of Node 0.STABLE.latest
install:
- ps: Install-Product node $env:nodejs_version
- npm i -g npm@latest
- npm install

build: off
Expand Down
4 changes: 4 additions & 0 deletions tests/__tests__/watch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ describe('Hello Class', () => {

describe('hello_world', () => {
let result: { childProcess: ChildProcess, getStderrAsync: () => Promise<string> };
let DEFAULT_TIMEOUT_INTERVAL: number;

beforeAll(() => {
result = runJestInWatchMode('../watch-test');
DEFAULT_TIMEOUT_INTERVAL = jasmine['DEFAULT_TIMEOUT_INTERVAL'];
jasmine['DEFAULT_TIMEOUT_INTERVAL'] = 10000;
});

it('should show the correct error locations in the typescript files without changes', () => {
Expand Down Expand Up @@ -81,6 +84,7 @@ describe('hello_world', () => {
afterAll(() => {
result.childProcess.kill();
// revert changes back
jasmine['DEFAULT_TIMEOUT_INTERVAL'] = DEFAULT_TIMEOUT_INTERVAL;
fs.writeFileSync(path.resolve(__dirname, '../watch-test/Hello.ts'), helloFile);
fs.writeFileSync(path.resolve(__dirname, '../watch-test/__tests__/Hello.test.ts'), testFile);
});
Expand Down

0 comments on commit 9cb9244

Please sign in to comment.