Skip to content

[FEATURE] MDX-268 ChiffrerCom_NOV premiere integration - #17384

Open
joffreyboches-modulix wants to merge 4 commits into
devfrom
tmp-cychiffrercomnov_premiereinte
Open

[FEATURE] MDX-268 ChiffrerCom_NOV premiere integration#17384
joffreyboches-modulix wants to merge 4 commits into
devfrom
tmp-cychiffrercomnov_premiereinte

Conversation

@joffreyboches-modulix

@joffreyboches-modulix joffreyboches-modulix commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

☀️ Problème

⛱️ Proposition

🧴 Remarques

🏊 Pour tester

https://app-pr17384.review.pix.fr/modules/b65757e7/chiffrer-com-nov

@pix-bot-github

pix-bot-github commented Sep 3, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.494.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js' 'tests/devcomp/unit/infrastructure/repositories/module-repository_test.js' && TEST_SETUP_MODE=unit npm run test:api:path -- 'tests/devcomp/acceptance/module-instantiation_test.js'


> pix-api@5.494.0 test:api:path
> NODE_ENV=test node ./node_modules/mocha/bin/mocha tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js tests/devcomp/unit/infrastructure/repositories/module-repository_test.js

Running with "unit" setup mode

 Exception during run: TypeError [ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE]: Module "file:///home/runner/work/pix/pix/api/src/devcomp/infrastructure/datasources/learning-content/modules/CY_Chiffrecom_NOV" is not of type "json"
    at handleInvalidType (node:internal/modules/esm/assert:120:9)
    at validateAttributes (node:internal/modules/esm/assert:88:14)
    at defaultLoadSync (node:internal/modules/esm/load:163:3)
    at #loadAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:802:12)
    at #loadSync (node:internal/modules/esm/loader:834:53)
    at ModuleLoader.load (node:internal/modules/esm/loader:783:26)
    at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:494:31)
    at #getOrCreateModuleJobAfterResolve (node:internal/modules/esm/loader:560:36)
    at afterResolve (node:internal/modules/esm/loader:607:52)
    at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:613:12)
    at node:internal/modules/esm/loader:632:32
    at TracingChannel.tracePromise (node:diagnostics_channel:362:14)
    at ModuleLoader.import (node:internal/modules/esm/loader:628:21)
    at defaultImportModuleDynamicallyForModule (node:internal/modules/esm/utils:225:31)
    at importModuleDynamicallyCallback (node:internal/modules/esm/utils:267:12)
    at importModules (file:///home/runner/work/pix/pix/api/src/devcomp/infrastructure/datasources/learning-content/module-datasource.js:87:33)
    at async file:///home/runner/work/pix/pix/api/src/devcomp/infrastructure/datasources/learning-content/module-datasource.js:8:21 {
  code: 'ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE'
}

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.494.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js' 'tests/devcomp/unit/infrastructure/repositories/module-repository_test.js' && TEST_SETUP_MODE=unit npm run test:api:path -- 'tests/devcomp/acceptance/module-instantiation_test.js'


> pix-api@5.494.0 test:api:path
> NODE_ENV=test node ./node_modules/mocha/bin/mocha tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js tests/devcomp/unit/infrastructure/repositories/module-repository_test.js

Running with "unit" setup mode


  ...................................!....................
  ........................................................
  .....................................

  148 passing (35s)
  1 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "chiffrer-com-nov" should contain a valid structure:
     AssertionError: 
============================================================

Error: "sections[1].grains[3].components[2].element.content" is not allowed to be empty.
Valeur concernée à rechercher : ""

============================================================
: expected ValidationError: "sections[1].grains[3].c… { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:162:33)



@joffreyboches-modulix
joffreyboches-modulix marked this pull request as ready for review September 3, 2026 15:05
@joffreyboches-modulix
joffreyboches-modulix requested a review from a team as a code owner September 3, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants