Skip to content
#

codemod

Here are 118 public repositories matching this topic...

guidobouman
guidobouman commented Aug 21, 2019

The and method is not supported by Jest, where Chai does support it.

It should probably cut the assertion in two:

- expect(ticketNumber).to.be.above(0).and.to.be.below(46)
+ expect(ticketNumber).toBeGreaterThan(0)
+ expect(ticketNumber).toBeLessThan(46)

Is this a feasible option for codemods?

If so: I'm willing to work on a PR.

iamareebjamal
iamareebjamal commented Mar 31, 2020

If the class is

export default class Table extends Component {}

The error says:

You defined the class @ember/component that extends from @ember/component using native class syntax

Which makes debugging extremely difficult

It should say:

You defined the class Table that extends from @ember/component using native class syntax
dhruvdutt
dhruvdutt commented Apr 9, 2018

Currently, we have support for transforming static Methods on prototype from

Controller.staticMethod = function(param) {
	var bar = "webpack-cli";
};

to

static staticMethod(param) {
	var bar = "webpack-cli";
}

But, we don't have support for transforming literals like this:

Controller.name = "Dhruvdutt";

We need to transform it into:

sta

Improve this page

Add a description, image, and links to the codemod topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the codemod topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.