Skip to content

Conversation

vinodh-kumar-1711
Copy link
Collaborator

No description provided.

],
"scripts": {
"test": "qunit tests/*-test.js",
"test": "qunit tests/*-test.js tests/**/*-test.js",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"test": "qunit tests/*-test.js tests/**/*-test.js",
"test": "qunit tests/**/*-test.js",

This is enough to catch all

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried but it didn't work. It was picking the test files present inside the subdirectories only and not the ones that are directly available under the tests directory


createAppExport({
fileName: adapterName,
sourceFile: sourceadapter,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camelCase naming


createAppExport({
fileName: constantName,
sourceFile: sourceconstant,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camelCase naming

// Create helper assets to app folder in addon
createAppExport({
fileName: helperName,
sourceFile: sourcehelper,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camelCase naming


createAppExport({
fileName: mixinName,
sourceFile: sourcemixin,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camelCase naming


createAppExport({
fileName: serviceName,
sourceFile: sourceservice,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camelCase naming


createAppExport({
fileName: utilName,
sourceFile: sourceutil,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camelCase naming

// Create validator assets to app folder in addon
createAppExport({
fileName: validatorName,
sourceFile: sourcevalidator,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

camelCase naming

// Commenting it out as the ignore pattern and config options are not supported by codemod-cli.
// log(`\nUpdating the import paths matching ${oldImportPath} to ${exportPath}`);
let updateImports = false;
if (updateImports) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are we doing here? the if condition will never be true here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the code


## Input / Output

<!--FIXTURES_TOC_START-->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should run

codemod-cli update-docs

to update the examples here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@rajasegar
Copy link
Owner

@vinodh-kumar-1711 Can you please check the failing tests?

@vinodh-kumar-1711
Copy link
Collaborator Author

That test will pass after this codemod-cli PR is merged.
rwjblue/codemod-cli#89

@vinodh-kumar-1711 vinodh-kumar-1711 merged commit b363167 into develop Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants