Skip to content

nickqi-tubi/rtl-codemods-demo

Repository files navigation

English | 中文

RTL Codemods Demo

The provided demo source code is not the completed Codemods utilized by Tubi during the Enzyme project migration. Instead, it is a highly simplified version that demonstrates the structure and operating principles of Codemods code after removing business code dependencies and complex transformer implementations. This demo serves as both a learning reference for Codemods and a scaffold foundation for developing custom Codemods.

Invoke Codemods Script

The demo code here is not packaged as a command-line command. However, users can easily achieve the same command-line execution effect through the predefined npm script. For example, you can execute the following npm command to automatically migrate the Enzyme-based test file ./demo/test.spec.tsx to an RTL implementation.

npm run transform ./demo/test.spec.tsx

For more command options, you can get them using the --help parameter.

npm run transform -- --help

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published