Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1895

remote addon build process bundles unit test files into addon.js

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2
    • 3.1.3
    • Gulp, Remote addons
    • Hide
      1. In the terminal, go to the project root folder and execute this command:

        gulp remoteaddon -p www/addons/calendar/
        

      2. Open the folder www/addons/calendar, there should be a file named calendar.zip. Unzip the file.
      3. In the unzipped folder, check that the e2e folder is empty.
      4. Open the file addon.js inside the unzipped folder and check that it doesn't contain the word "describe".
      Show
      In the terminal, go to the project root folder and execute this command: gulp remoteaddon -p www/addons/calendar/ Open the folder www/addons/calendar , there should be a file named calendar.zip . Unzip the file. In the unzipped folder, check that the e2e folder is empty. Open the file addon.js inside the unzipped folder and check that it doesn't contain the word "describe".
    • MOODLE_31_STABLE
    • MOODLE_32_STABLE
    • Moodle Mobile 3.2

      The gulp step to bundle remote addons grabs .js files from the e2e test folder when creating the addon.js file. The presence of this test code then throws error and prevents installation.

            dpalou Dani Palou
            bawjaws David Scotson
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Berta Maroto Berta Maroto
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.