Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate jest-docblock to TypeScript #7836

Merged
merged 2 commits into from Feb 8, 2019
Merged

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Feb 8, 2019

Summary

Built diff:

diff --git c/packages/jest-docblock/build/index.js w/packages/jest-docblock/build/index.js
index 8c60ffcd1..24f2b052c 100644
--- c/packages/jest-docblock/build/index.js
+++ w/packages/jest-docblock/build/index.js
@@ -9,20 +9,20 @@ exports.parse = parse;
 exports.parseWithComments = parseWithComments;
 exports.print = print;
 
-function _detectNewline() {
-  const data = _interopRequireDefault(require('detect-newline'));
+function _os() {
+  const data = require('os');
 
-  _detectNewline = function _detectNewline() {
+  _os = function _os() {
     return data;
   };
 
   return data;
 }
 
-function _os() {
-  const data = require('os');
+function _detectNewline() {
+  const data = _interopRequireDefault(require('detect-newline'));
 
-  _os = function _os() {
+  _detectNewline = function _detectNewline() {
     return data;
   };
 
@@ -38,8 +38,6 @@ function _interopRequireDefault(obj) {
  *
  * This source code is licensed under the MIT license found in the
  * LICENSE file in the root directory of this source tree.
- *
- *
  */
 const commentEndRe = /\*\/$/;
 const commentStartRe = /^\/\*\*/;

Test plan

Green CI

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants