import { NodeRuntime } from "../../node-runtime" ; import { RuntimeLogLevels , FileOverwriteBehaviors } from "@codotype/core" ; import { InMemoryFileSystemAdapter } from "../../InMemoryFileSystemAdapter" ; import { build } from "../../__tests__/test_state" ; describe ( "prepareProjectBuildDestination" , ( ) => { test ( "creates .codotype directory + codotype-project.json" , async ( ) => { const fileSystemAdapter = new InMemoryFileSystemAdapter ( ) ; const runtime = new NodeRuntime ( { cwd : "/test-cwd/" , fileOverwriteBehavior : FileOverwriteBehaviors . force , fileSystemAdapter , } ) ; await runtime . execute ( { build } ) ; expect ( fileSystemAdapter . files ) . toMatchSnapshot ( ) ; } ) ; } ) ;