fix(react): remove generated styles.[ext] file for CSS-in-JS solutions like styled-compoentns/emotion (#4347)

This commit is contained in:
Jack Hsu 2020-12-18 15:35:51 -05:00 committed by GitHub
parent 47cd7d8edb
commit cd9b96c98e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -482,6 +482,9 @@ describe('app', () => {
tree.exists('apps/my-app/src/app/app.styled-components')
).toBeFalsy();
expect(tree.exists('apps/my-app/src/app/app.tsx')).toBeTruthy();
expect(
tree.exists('apps/my-app/src/styles.styled-components')
).toBeFalsy();
const content = tree.read('apps/my-app/src/app/app.tsx').toString();
expect(content).toContain('styled-component');

View File

@ -0,0 +1 @@
/* You can add global styles to this file, and also import other style files */