coderoad / coderoad-vscode

👩‍💻 Create or play Interactive coding tutorials in VSCode
https://coderoad.github.io
GNU Affero General Public License v3.0
947 stars 39 forks source link

Component Testing #201

Open ShMcK opened 4 years ago

ShMcK commented 4 years ago

There are no UI based tests at the moment inside of the web-app folder.

SavvyShah commented 2 years ago

I would like to take this up.

ShMcK commented 2 years ago

Let me know if I can provide any support or if you'd like to chat.

SavvyShah commented 2 years ago

Storybook build is failing with an error.

ERROR in ./.storybook/config.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] /home/shubham/repos/coderoad-vscode/web-app/.storybook/config.ts: .options is not a valid Plugin property
    at /home/shubham/repos/coderoad-vscode/web-app/node_modules/@babel/core/lib/config/validation/plugins.js:65:42
    at Array.forEach (<anonymous>)
    at validatePluginObject (/home/shubham/repos/coderoad-vscode/web-app/node_modules/@babel/core/lib/config/validation/plugins.js:54:20)
    at /home/shubham/repos/coderoad-vscode/web-app/node_modules/@babel/core/lib/config/full.js:261:55
    at Generator.next (<anonymous>)
    at Function.<anonymous> (/home/shubham/repos/coderoad-vscode/web-app/node_modules/@babel/core/lib/gensync-utils/async.js:16:3)
    at Generator.next (<anonymous>)
    at step (/home/shubham/repos/coderoad-vscode/web-app/node_modules/@babel/core/node_modules/gensync/index.js:261:32)
    at evaluateAsync (/home/shubham/repos/coderoad-vscode/web-app/node_modules/@babel/core/node_modules/gensync/index.js:291:5)
    at Function.errback (/home/shubham/repos/coderoad-vscode/web-app/node_modules/@babel/core/node_modules/gensync/index.js:113:7)
    at errback (/home/shubham/repos/coderoad-vscode/web-app/node_modules/@babel/core/lib/gensync-utils/async.js:60:18)
    at async (/home/shubham/repos/coderoad-vscode/web-app/node_modules/@babel/core/node_modules/gensync/index.js:188:17)
    at onFirstPause (/home/shubham/repos/coderoad-vscode/web-app/node_modules/@babel/core/node_modules/gensync/index.js:216:13)
    at Generator.next (<anonymous>)
    at cachedFunction (/home/shubham/repos/coderoad-vscode/web-app/node_modules/@babel/core/lib/config/caching.js:58:46)
    at cachedFunction.next (<anonymous>)
 @ ./.storybook/config.ts-generated-config-entry.js 54:0-91 55:12-18 56:14-20
 @ multi ./node_modules/@storybook/core-client/dist/esm/globals/polyfills.js ./node_modules/@storybook/core-client/dist/esm/globals/globals.js (webpack)-hot-middleware/client.js?reload=true&quiet=false&noInfo=undefined ./storybook-init-framework-entry.js ./node_modules/@storybook/react/dist/esm/client/preview/config-generated-config-entry.js ./.storybook/config.ts-generated-config-entry.js
ShMcK commented 2 years ago

Thanks @SavvyShah!

I've started some progress to get Storybook working again. It seems I'm behind on Webpack, Storybook changes, etc. JS moves fast.

I'll continue soon, but if you want to take a look there's progress here: https://github.com/coderoad/coderoad-vscode/pull/587