12 Commits

Author SHA1 Message Date
Burak Yiğit Kaya
08411a05a4 Fix: Make tests great again on Travis CI macOS (#3667)
**Summary**

macOS tests on Travis CI keep timing out and they run very slowly. This patch attempts to solve this by doing the following:

- Use ramfs for `__tests__` folder and for `$TMPDIR` for faster file system
- Remove unnecessary `brew update` and `brew install yarn` commands
- Remove unnecessary `--max-workers` argument since all CI VMs have only 2 cores
- Clean up tmp folders per test after they are done
- Fix `link/unlink` test's race condition and previous test case reliance
- Fix `request-manager` timeout tests to be more reliable and finish in under our normal timeout
- Use real timers by default and add necessary `useFakeTimers` calls
- Increase heap size for Linux and OS X to 4 GB since OS X builds were crashing due to limited heap space
- Removes retries from Travis CI

**Test plan**

All tests on all platforms should pass and pass in about 20 minutes max.
2017-06-29 15:34:42 +01:00
Simon Vocella
25890c8cf9 add prettier and prettying everything (#3401)
* add prettier and prettying everything

* fix scripts and run yarn prettier

* fix scripts again and run yarn prettier

* use eslint-plugin-prettify instead of custom scripts
2017-05-16 19:12:03 +01:00
Simon Vocella
b501276ab7 update eslint, eslint-config-fb-strict and other dependencies (#3390)
* update eslint, babel-eslint, eslint-config-fb-strict

* update lockfile

* downgrade babel-eslint, remove eslint-config-fbjs because the latest is incompatible with the latest of eslint-config-fb-strict, update eslint-plugin-flowtype and eslint-plugin-react
2017-05-13 22:01:39 +01:00
Christoph Pojer
17710d52e6 var/let -> const (#505) 2016-10-05 13:05:44 +01:00
Sebastian McKenzie
6820fb2d33 Rename kpm to yarn (#362) 2016-09-20 15:03:11 +01:00
Andres Suarez
355988581a Async function related optimizations (#352)
* Convert unnecessarily async functions into normal ones

* Remove explicit Promise returns from async functions

Returning an explicit Promise from an async function is doing unnecessary extra work, since the resolved/rejected value has to be denested. It's better to just return a value (or throw if it's a rejection).

* Add lint rule no-async-without-await
2016-09-19 10:40:28 +01:00
Sebastian McKenzie
46e8be5a9b remove patents and facebook license headers 2016-09-16 20:27:37 +01:00
Konstantin Raev
7ac72dfa9c fixed lock file (#335) 2016-09-14 15:42:28 +01:00
Sebastian McKenzie
5300b482c8 Cleanup workflow (#281)
* Rename --quick-sloppy flag from `kpm check` to --integrity

* Make --save implicit when installing new modules, remove strict lockfiles, always create updated lockfile and populate tarball cache

* Add integrity hash check to `kpm install`

* Update kpm.lock

* remove incorrect assert messages

* split up package resolving and fetching

* update kpm.lock

* clean up activityStep, move back cursor at end to cover worker lines - fixes #262

* use fake jest timers

* remove old test

* add mocks to jest test ignore

* fix test fixture lockfile

* Add lockfile version header - fixes #280

* split up `kpm install` into `kpm add` - closes #284

* fix lint

* fix using `latest` tag when adding new dependencies - fixes #263

* clean up kpm entry files

* add useless `kpm version` command

* rename config.js to Config.js

* remove Makefile and switch to simple npm scripts

* add more flow-typed definitions

* correctly case Config file

* fix misc lint

* fix type annotation of PackageConstraintResolver#reduce

* fix bin/kpm nits and unused variable

* use dashed filenames instead of camelcase

* move add command fixtures to separate folder

* hoist common-mirror test folder
2016-09-06 16:36:48 +01:00
Konstantin Raev
7dcbecbee9 makes trunk green (#225)
* makes trunk green

* returned bablerc back

* extracted failing test

* removed package.json test because we need to clear all properties with arrays and this makes the test fail unexpectedly

* case fix
2016-08-19 16:00:49 +01:00
Sebastian McKenzie
7b4d7c8fd2 Switch to Facebook code style - closes #172 2016-08-16 23:05:13 +01:00
Christoph Pojer
223e209177 Update to Jest 14. (#171)
* Move fixtures.

* Update to Jest 14.

* Don’t track temporary files because of permission errors.

* Fix flow errors.

* Use node4 transforms for tests so they work on travis.
2016-07-29 10:57:22 +01:00