Skip to content

Test the binary #391

@netanelgilad

Description

@netanelgilad

@claude

[2:14 PM]Netanel Gilad תגיד, הטסטים בcli
[2:14 PM]מריצים את הcli על אמת ונותנים לו משתני סביבה שמפנים אותו לעשות קריאות לmock server?
[2:20 PM]Kfir Strikovsky nope
[2:21 PM]כרגע זה ממש עושה איפורט לdist וקורה ל runCLI, ה msw mock server  הוא in memory
[2:21 PM]זה היה הפתרון הפשוט יותר.. אבל זה כבר ניהיה לא רלוונטי עכשיו שיש לנו בינאריים =\
[2:23 PM]Netanel Gilad מגניב, אתה בעד הכיוון של להריץ את הבינארי האמיתי עם מתשני סביבה שיפנו אותו למוקים?
[2:35 PM]Kfir Strikovsky כן, מאוד בעד לבדוק את הבינארי :muscle:
היום פשוט אין את התשתית להריץ שרת מוקים משלנו, יש לנו msw, צריך לכתוב את זה ואז נוכל לבדוק את הCLI אשכרה כexecutable[2:37 PM]Netanel Gilad msw can also run as an external process nope?
[2:42 PM]Kfir Strikovsky walla seems so https://github.com/mswjs/http-middleware
mswjs/http-middlewareSpawn an HTTP server from your request handlers or apply them to an existing server using a middleware.Websitehttps://npm.im/@mswjs/http-middlewareStars123Added by [GitHub](https://base44workspace.slack.com/services/B0955CT7D1V)[2:46 PM]Netanel Gilad [@Claude](https://base44workspace.slack.com/team/U0A5Y85T607) what do you think, can you refactor the base44/cli repo tests to test the real binary using all of the above?
[2:46 PM]shit, I thought it works in DMs hehe
[2:46 PM]Kfir Strikovsky lol
[2:46 PM]Netanel Gilad thought someone did it my DMs
[2:46 PM]Kfir Strikovsky but wait don't refactor everything
[2:46 PM]maybe lets add another folder
[2:47 PM]tests/binary
[2:47 PM]i just htink it's a huge refactor now
[2:47 PM]or maybe not cause we have the TestKit, so maybe it;s more simple then i think
[2:47 PM]Netanel Gilad it's not just a replacement in the testkit?
[2:47 PM]Kfir Strikovsky אוקי יאללה תן לו
[2:47 PM]נבהלתי רגע עכשיו שהוא יזיז לי 200 טסטים
[2:47 PM]Netanel Gilad the tests code seems kinda agnostic to it yeah
[2:47 PM]Kfir Strikovsky חחח

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions