return function()local K=require(script.Parent.Parent.createElement)local e=require(script.Parent.Parent.createReconciler)local B=require(script.Parent.Parent.createSpy)local M=require(script.Parent.Parent.NoopRenderer)local x=require(script.Parent.Parent.Type)local u=require(script.Parent.Parent.Component)local P=e(M)it("\115\104\111\117\108\100 \098\101 \105\110\118\111\107\101\100 \119\104\101\110 \109\111\117\110\116\101\100",function()local e=u:extend("\077\121\067\111\109\112\111\110\101\110\116")local M=B()e.didMount=M.value function e.render(K)return nil end local J=K(e)local C=nil local g="\084\101\115\116"P.mountVirtualNode(J,C,g);(expect(M.callCount)).to.equal(1)local p=M:captureValues("\115\101\108\102");(expect(x.of(p.self))).to.equal(x.StatefulComponentInstance)end)end
return function()
	local createElement = require(script.Parent.Parent.createElement)
	local createReconciler = require(script.Parent.Parent.createReconciler)
	local createSpy = require(script.Parent.Parent.createSpy)
	local NoopRenderer = require(script.Parent.Parent.NoopRenderer)
	local Type = require(script.Parent.Parent.Type)

	local Component = require(script.Parent.Parent.Component)

	local noopReconciler = createReconciler(NoopRenderer)

	it("should be invoked when mounted", function()
		local MyComponent = Component:extend("MyComponent")

		local didMountSpy = createSpy()

		MyComponent.didMount = didMountSpy.value

		function MyComponent:render()
			return nil
		end

		local element = createElement(MyComponent)
		local hostParent = nil
		local key = "Test"

		noopReconciler.mountVirtualNode(element, hostParent, key)

		expect(didMountSpy.callCount).to.equal(1)

		local values = didMountSpy:captureValues("self")

		expect(Type.of(values.self)).to.equal(Type.StatefulComponentInstance)
	end)
end