Skip to content

tests fix#443

Open
jp-tosca wants to merge 2 commits intodevelopfrom
filename_test_fix_small
Open

tests fix#443
jp-tosca wants to merge 2 commits intodevelopfrom
filename_test_fix_small

Conversation

@jp-tosca
Copy link
Copy Markdown
Contributor

@jp-tosca jp-tosca commented Apr 23, 2026

What this PR does / why we need it:

There was a change on DV with IQSS/dataverse#12145 that caused tests to fail, this is meant to be a temporary patch since it seems there is a bug with this PR.

We did a few testing and provided a .tsv file and received .tab response.
When providing a .tab file we received a .tsv response.

Copilot AI review requested due to automatic review settings April 23, 2026 18:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts an integration test setup for CollectionsRepository around tabular file handling.

Changes:

  • Updates the uploaded test tabular file name used by the getCollectionItems for published tabular file integration test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

describe('getCollectionItems for published tabular file', () => {
let testDatasetIds: CreatedDatasetIdentifiers
const testTextFile4Name = 'test-file-4.tab'
const testTextFile4Name = 'test-file-4.tsv'
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testTextFile4Name was changed to test-file-4.tsv, but the test fixture that uploadFileViaApi reads from test/testHelpers/files is test-file-4.tab (no .tsv exists). This will cause readFile(${__dirname}/${fileName}) to fail and also makes the later expectation expectedFileName = 'test-file-4.tab' inconsistent. Either revert to .tab or add the .tsv fixture and update the expected filename/assertions accordingly.

Suggested change
const testTextFile4Name = 'test-file-4.tsv'
const testTextFile4Name = 'test-file-4.tab'

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants