Commit Graph

18 Commits

Author SHA1 Message Date
Simen Bekkhus 1c2011dbce
chore: verify all packages have the same engine requirement (#9871) 2020-04-23 20:19:29 +02:00
Simen Bekkhus bc195e4f17
chore: more cleanups 2020-01-28 12:40:01 +01:00
Simen Bekkhus d792940b01
Setup building, linting and testing of TypeScript (#7808) 2019-02-06 10:18:49 +01:00
Simen Bekkhus 68806113fc
Correctly bundle up for browser globals (#7661)
* use webpack over browserify for browser test

* use webpack over rollup for browser build
2019-01-20 21:47:21 +01:00
Dmitry Molotkov 44054afb91 chore: upgrade to micromatch 3 (#6650) 2019-01-19 00:54:51 +01:00
Simen Bekkhus 066f0e3cbf
chore: update deps (#7618) 2019-01-13 17:05:13 +01:00
Rubén Norte 665a93eec7
Update Facebook copyright headers (#7589)
* Update Facebook copyright headers

* Update changelog

* Fixed CSS comments

* Fixed change in sourcemap
2019-01-08 17:41:54 +00:00
Simen Bekkhus 1818d84b2c
Migrate to Babel 7 (#7016) 2018-12-18 10:28:03 +01:00
Andrew Pyle 968ddc416a Standardize filenames in packages/expect (#7306)
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. -->

<!-- Please remember to update CHANGELOG.md in the root of the project if you have not done so. -->

## Summary

<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->

References Standardize file naming #4969.

Updates naming in package expect. Uses conventions listed in #4969 (comment):
- Files that primarily export types, objects or classes should use CapitalizedFileNames.js and should mirror what’s inside 1:1.
- Files that export a single function should have the function name with camelCase in it.
- Folder names should use dashes, unless they are special folders.

### Decisions
- Test & snapshot files retained their name, but converted it to camelCase.
- Files which exported an object were named according to the internal object, which was camelCase. However, I believe that the standard referenced above states that objects should have CapitalizedNames. Should the internal objects be renamed too?
    - `matchers.js`
    - `jestMatchersObject.js`
    - `spyMatchers.js`
    - `toThrowmatchers.js`

### Questions
How should `asymmetricMatchers.js` be named? It exports a class `AsymmetricMatcher`, but it also exports a bunch of functions, and was named in camelCase before.


## Test plan

<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI. -->

Output of yarn run test on master and standardize filenames in packages/jest circus branches was the same.

[jest-test-expect-master.txt](https://github.com/facebook/jest/files/2532360/jest-test-expect-master.txt)
[jest-test-expect-standardize-filenames.txt](https://github.com/facebook/jest/files/2532363/jest-test-expect-standardize-filenames.txt)
2018-10-31 10:28:34 +01:00
Simen Bekkhus 7d5de68444
chore: transpile everything for browsers (#7204) 2018-10-18 12:45:29 +02:00
Simen Bekkhus 41e0da02f5
chore: bump package versions (#6978) 2018-09-19 14:00:24 +02:00
Simen Bekkhus ed95b36bb1 chore: add arrow-body-style eslint rule (#6406)
* chore: add arrow-body-style eslint rule

* update snapshots
2018-06-20 19:07:19 +01:00
Simen Bekkhus 4f685d8850 chore(package): update dev dependencies (#5175)
* chore(package): update dev dependencies

* chore: downgrade eslint
2017-12-26 08:14:12 +09:00
cpojer 77744a2481 🃏 Change license from BSD+Patents to MIT. 2017-09-26 20:54:29 +01:00
Simen Bekkhus 4398ccbf59 Upgrade all outdated deps (#4425)
* Upgrade all outdated deps

* Revert micromatch upgrade

* Disable version from yargs

* Upgrade deps in root package.json
2017-09-05 16:21:19 +01:00
Simen Bekkhus 51e0a24942 Add fake chalk in browser builds in order to support IE10 (#4367)
* Add a fake chalk in order to work in older browsers

Closes #4074

* Make fake chalk private

* fix import

* Normalize ansi-styles version

* Remove yarn.lock from npmignore

* Move fake chalk into expect package
2017-08-27 21:34:53 +01:00
Konstantin Raev e6704bf8cc Integrated with Yarn workspaces (#3906)
* enabled workspaces

* updated lerna to 2.0.0 with workspaces support
2017-07-07 13:37:29 -07:00
Kenneth Skovhus ac25993b51 Use rollup for browser builds (#3532)
* Remove browser builds for sub dependencies

* Add karma browser tests for es5 builds

* Use rollup for browser builds

* Review comment + prettier

* Fix rollup build by using export for jest-matchers

* Run prettier on unrelated file
2017-06-28 11:08:28 +01:00