Skip to content

port test_string to CTS#44

Merged
legendecas merged 7 commits intonodejs:mainfrom
bavulapati:feat/port-test-string
Apr 11, 2026
Merged

port test_string to CTS#44
legendecas merged 7 commits intonodejs:mainfrom
bavulapati:feat/port-test-string

Conversation

@bavulapati
Copy link
Copy Markdown
Contributor

Ports
test_string from the Node.js test suite to the CTS.

  • Most of the files are identical except for the js files and CMakeLists.txt
  • js files use global assert and loadAddon instead of requiring modules
  • CMakeLists.txt sets NAPI_VERSION >= 10, as API like node_api_create_external_string_latin1 are available only from NAPI_VERSION >= 10. Ref
    docs

@bavulapati
Copy link
Copy Markdown
Contributor Author

@legendecas Fixed the CI issue. Can we run the tests again?

Ports
[test_string](https://github.com/nodejs/node/tree/main/test/js-native-api/test_string)
from the Node.js test suite to the CTS.
- Most of the files are identical except for the js files and
CMakeLists.txt
- js files use global assert and loadAddon instead of requiring modules
- CMakeLists.txt sets NAPI_VERSION >= 10, as API like
node_api_create_external_string_latin1 are available only from
NAPI_VERSION >= 10. Ref
[docs](https://nodejs.org/docs/latest/api/n-api.html#node-api-create-external-string-latin1)

Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
@legendecas legendecas merged commit 943ad7f into nodejs:main Apr 11, 2026
13 checks passed
@github-project-automation github-project-automation bot moved this from Need Triage to Done in Node-API Team Project Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants