fix: test issues from contextlink removal

Apparently there were two things:
- had to remove contextlink from the test command (that was expected)
- can't import libs from putility in the test environment. The error
  produced for this doesn't really explain why.
This commit is contained in:
KernelDeimos 2024-12-06 12:09:23 -05:00
parent fad2c944ab
commit 545e7db5bd
3 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@
"webpack-cli": "^5.1.1"
},
"scripts": {
"test": "npx mocha src/phoenix/test src/contextlink/test && node src/backend/tools/test",
"test": "npx mocha src/phoenix/test && node src/backend/tools/test",
"start=gui": "nodemon --exec \"node dev-server.js\" ",
"start": "node ./tools/run-selfhosted.js",
"build": "cd src/gui; node ./build.js",

View File

@ -17,8 +17,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { disallowAccessToUndefined } from "./lang.js";
import { libs } from '@heyputer/putility';
const { Context } = libs.context;
import putility from '@heyputer/putility';
const { Context } = putility.libs.context;
export class StatefulProcessor {
constructor (params) {

View File

@ -16,8 +16,8 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { libs } from '@heyputer/putility';
const { Context } = libs.context;
import putility from '@heyputer/putility';
const { Context } = putility.libs.context;
import { SyncLinesReader } from '../../src/ansi-shell/ioutil/SyncLinesReader.js';
import { CommandStdinDecorator } from '../../src/ansi-shell/pipeline/iowrappers.js';
import { ReadableStream, WritableStream } from 'stream/web'