-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
Milestone
Description
TypeScript Version: nightly (2.0.2)
Node Version: 6.4.0
Code
jest.tsx
import * as React from 'react';
import { shallow, mount } from 'enzyme';
import App from '../src/components/App';
describe('Test environment tests', () => {
it("should work", () => {
expect(1 + 1).toBe(2);
});
it('should work with react components', () => {
const wrapper = shallow(<App />);
expect(wrapper.contains(<div/>)).toBe(true);
});
});Expected behavior:
I will fail with the following error when watching using vscode:
4:53:40 PM - File change detected. Starting incremental compilation...
<--- Last few GCs --->
155816 ms: Mark-sweep 1310.1 (1434.2) -> 1310.1 (1434.2) MB, 1924.0 / 0 ms [allocation failure] [GC in old space requested].
157725 ms: Mark-sweep 1310.1 (1434.2) -> 1310.1 (1434.2) MB, 1909.8 / 0 ms [allocation failure] [GC in old space requested].
159675 ms: Mark-sweep 1310.1 (1434.2) -> 1310.1 (1434.2) MB, 1949.4 / 0 ms [last resort gc].
161675 ms: Mark-sweep 1310.1 (1434.2) -> 1310.1 (1434.2) MB, 2000.2 / 0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x3d384a7c9e31 <JS Object>
1: instantiateList [/usr/lib/node_modules/typescript/lib/tsc.js:~17703] [pc=0x1122188fa154] (this=0x3d384a7e0fa9 <JS Global Object>,items=0x3c9bf043bf51 <JS Array[1]>,mapper=0xf92614d0811 <JS Function (SharedFunctionInfo 0x8a96e8edb01)>,instantiator=0x1b5df291ed01 <JS Function instantiateSymbol (SharedFunctionInfo 0x5b9624afa79)>)
2: instantiateSignature [/usr/lib/node_modules/typescrip...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [node]
2: 0xff6e1c [node]
3: v8::Utils::ReportApiFailure(char const*, char const*) [node]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
5: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [node]
6: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [node]
7: 0x112218106338
Watching build tasks has finished.
Actual behavior:
It should recompile the changed files.
ChrisJamesC and narkowicz
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created