horoeka-2022 / gardenz

Empowering community gardens in New Zealand
0 stars 1 forks source link

44 light gallery #137

Open Rav-Ariyanayagam opened 1 year ago

Rav-Ariyanayagam commented 1 year ago

Definition of Done

For every submission to the codebase, check that it meets the DoD below.

Rav-Ariyanayagam commented 1 year ago

Gallery.test.js encounters an error: "Jest encountered an unexpected token"

Details:

/home/learner/workspace/gardenz/node_modules/lightgallery/css/lightgallery.css:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){@font-face {
                                                                                  ^

SyntaxError: Invalid or unexpected token

   8 |
   9 | // import styles
> 10 | import 'lightgallery/css/lightgallery.css'
     | ^
  11 | import 'lightgallery/css/lg-zoom.css'
  12 | import 'lightgallery/css/lg-thumbnail.css'
  13 |

  at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1728:14)
  at Object.<anonymous> (client/views/user/Gardens/Gallery/Gallery.jsx:10:1)